public function BambooTwigConfigTest::testGetState in Bamboo Twig 8.2
Same name and namespace in other branches
- 8.5 tests/src/Functional/BambooTwigConfigTest.php \Drupal\Tests\bamboo_twig\Functional\BambooTwigConfigTest::testGetState()
- 8.3 tests/src/Functional/BambooTwigConfigTest.php \Drupal\Tests\bamboo_twig\Functional\BambooTwigConfigTest::testGetState()
- 8.4 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\FunctionalCode
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);
}