protected function DeleteConfigPageTypeTest::setUp in Config Pages 8.2
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ DeleteConfigPageTypeTest.php, line 30
Class
- DeleteConfigPageTypeTest
- Tests that the ConfigPages Type can be created.
Namespace
Drupal\Tests\config_pages\FunctionalCode
protected function setUp() : void {
parent::setUp();
$configPageType = ConfigPagesType::create([
'id' => 'config_pages_test_type',
'label' => 'ConfigPages Test Type Label',
'context' => [
'show_warning' => '',
'group' => [],
],
'menu' => [
'path' => '/admin/config_pages_test/test_page',
'weight' => 0,
'description' => 'Test page for ConfigPages module.',
],
'token' => FALSE,
]);
$configPageType
->save();
$this->container
->get('router.builder')
->rebuild();
}