You are here

public function BambooTwigConfigTest::testGetState in Bamboo Twig 8.4

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

@covers Drupal\bamboo_twig_config\TwigExtension\Config::getState

File

tests/src/Functional/BambooTwigConfigTest.php, line 62

Class

BambooTwigConfigTest
Tests Config twig filters and functions.

Namespace

Drupal\Tests\bamboo_twig\Functional

Code

public function testGetState() {
  $state = $this->container
    ->get('state');
  $this->time = $state
    ->get('system.cron_last');
  $this
    ->drupalGet('/bamboo-twig-config');
  $this
    ->assertElementPresent('.test-configs div.config-state');
  $this
    ->assertElementContains('.test-configs div.config-state', $this->time);
}