You are here

public function BambooTwigPathTest::testPathSystem in Bamboo Twig 8.2

Same name and namespace in other branches
  1. 8.5 tests/src/Functional/BambooTwigPathTest.php \Drupal\Tests\bamboo_twig\Functional\BambooTwigPathTest::testPathSystem()
  2. 8.3 tests/src/Functional/BambooTwigPathTest.php \Drupal\Tests\bamboo_twig\Functional\BambooTwigPathTest::testPathSystem()
  3. 8.4 tests/src/Functional/BambooTwigPathTest.php \Drupal\Tests\bamboo_twig\Functional\BambooTwigPathTest::testPathSystem()

@covers Drupal\bamboo_twig_path\TwigExtension\Path::getSystemPath

File

tests/src/Functional/BambooTwigPathTest.php, line 25

Class

BambooTwigPathTest
Tests Path twig filters and functions.

Namespace

Drupal\Tests\bamboo_twig\Functional

Code

public function testPathSystem() {
  $this
    ->drupalGet('/bamboo-twig-path');
  $this
    ->assertElementPresent('.test-paths div.path-theme');
  $this
    ->assertElementContains('.test-paths div.path-theme', 'core/themes/stable');
  $this
    ->assertElementPresent('.test-paths div.path-core');
  $this
    ->assertElementContains('.test-paths div.path-core', 'core');
  $this
    ->assertElementPresent('.test-paths div.path-module');
  $this
    ->assertElementContains('.test-paths div.path-module', 'core/modules/node');
}