You are here

public function AdvaggPathManipulationTest::testForceHttps in Advanced CSS/JS Aggregation 8.2

Tests force_https.

File

src/Tests/AdvaggPathManipulationTest.php, line 24

Class

AdvaggPathManipulationTest
Tests that all the asset path settings function correctly.

Namespace

Drupal\advagg\Tests

Code

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