You are here

public function BambooTwigConfigsTest::testGetState in Bamboo Twig 8

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

File

tests/src/Functional/BambooTwigConfigsTest.php, line 34

Class

BambooTwigConfigsTest
Tests Configs 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-configs');
  $this
    ->assertElementPresent('.test-configs div.config-state');
  $this
    ->assertElementContains('.test-configs div.config-state', $this->time);
}