protected function SmartdocRoutingTest::setUp in Apigee API Catalog 8.2
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ SmartdocRoutingTest.php, line 57
Class
- SmartdocRoutingTest
- Tests smartdoc routing compatibility.
Namespace
Drupal\Tests\apigee_api_catalog\FunctionalCode
protected function setUp() {
parent::setUp();
$this->apidoc = $this->container
->get('entity_type.manager')
->getStorage('node')
->create([
'type' => 'apidoc',
'title' => 'API 1',
'body' => [
'value' => 'Test API 1',
'format' => 'basic_html',
],
'field_apidoc_spec' => NULL,
]);
$this->apidoc
->save();
$user = $this
->drupalCreateUser([
'access content',
]);
$this
->drupalLogin($user);
}