Tests absolute_to_protocol_relative.

Fichier

src/Tests/AdvaggPathManipulationTest.php, line 35

Classe

AdvaggPathManipulationTest
Tests that all the asset path settings function correctly.

Namespace

Drupal\advagg\Tests

Code

public function testAbsoluteToProtocolRelative() {
    $this->config
        ->set('path.convert.absolute_to_protocol_relative', TRUE)
        ->set('path.convert.force_https', FALSE)
        ->save();
    $this->drupalGet('');
    $this->assertRaw('src="//cdn.jsdelivr.net/jquery.actual/1.0.18/jquery.actual.min.js');
}