public function BreadcrumbExtraFieldTest::setUp in Breadcrumb Extra Field 8
Same name and namespace in other branches
- 2.x tests/src/Functional/BreadcrumbExtraFieldTest.php \Drupal\Tests\breadcrumb_extra_field\Functional\BreadcrumbExtraFieldTest::setUp()
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ BreadcrumbExtraFieldTest.php, line 29
Class
- BreadcrumbExtraFieldTest
- Tests for breadcrumb extra field.
Namespace
Drupal\Tests\breadcrumb_extra_field\FunctionalCode
public function setUp() {
parent::setUp();
$type = $this->container
->get('entity_type.manager')
->getStorage('node_type')
->create([
'type' => 'article',
'name' => 'Article',
]);
$type
->save();
$this->container
->get('router.builder')
->rebuild();
}