protected function DefaultContentTest::setUp in Default Content for D8 8
Same name and namespace in other branches
- 2.0.x tests/src/Functional/DefaultContentTest.php \Drupal\Tests\default_content\Functional\DefaultContentTest::setUp()
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ DefaultContentTest.php, line 36
Class
- DefaultContentTest
- Test import of default content.
Namespace
Drupal\Tests\default_content\FunctionalCode
protected function setUp() {
parent::setUp();
// Create user 2 with the correct UUID.
User::create([
'uid' => 2,
'uuid' => 'ab301be5-7017-4ff8-b2d3-09dc0a30bd43',
'name' => 'User 2',
'mail' => 'user2@example.com',
'status' => TRUE,
])
->save();
$this
->createContentType([
'type' => 'page',
]);
}