You are here

public function BambooTwigPathTest::testPathSystem in Bamboo Twig 8.5

Same name and namespace in other branches
  1. 8.2 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 26

Class

BambooTwigPathTest
Tests Path twig filters and functions.

Namespace

Drupal\Tests\bamboo_twig\Functional

Code

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