You are here

public function EngineTwigTest::testTwigFileUrls in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Theme/EngineTwigTest.php \Drupal\system\Tests\Theme\EngineTwigTest::testTwigFileUrls()

Tests the automatic/magic calling of toString() on objects, if exists.

File

core/modules/system/src/Tests/Theme/EngineTwigTest.php, line 126
Contains \Drupal\system\Tests\Theme\EngineTwigTest.

Class

EngineTwigTest
Tests Twig-specific theme functionality.

Namespace

Drupal\system\Tests\Theme

Code

public function testTwigFileUrls() {
  $this
    ->drupalGet('/twig-theme-test/file-url');
  $filepath = file_create_url('core/modules/system/tests/modules/twig_theme_test/twig_theme_test.js');
  $this
    ->assertRaw('<div>file_url: ' . $filepath . '</div>');
}