Tests absolute_to_protocol_relative.

File

src/Tests/AdvaggPathManipulationTest.php, line 35

Class

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');
}