public function TwigTweakTest::setUp in Twig Tweak 8
Same name and namespace in other branches
- 8.2 tests/src/Functional/TwigTweakTest.php \Drupal\Tests\twig_tweak\Functional\TwigTweakTest::setUp()
- 3.x tests/src/Functional/TwigTweakTest.php \Drupal\Tests\twig_tweak\Functional\TwigTweakTest::setUp()
- 3.1.x tests/src/Functional/TwigTweakTest.php \Drupal\Tests\twig_tweak\Functional\TwigTweakTest::setUp()
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ TwigTweakTest.php, line 35
Class
- TwigTweakTest
- A test for Twig extension.
Namespace
Drupal\Tests\twig_tweak\FunctionalCode
public function setUp() {
parent::setUp();
$this
->createContentType([
'type' => 'page',
]);
$this
->createNode([
'title' => 'Alpha',
]);
$this
->createNode([
'title' => 'Beta',
]);
$this
->createNode([
'title' => 'Gamma',
]);
}