protected function RecentlyReadBlockTest::setUp in Recently Read 8
Initial set up for test.
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ RecentlyReadBlockTest.php, line 45
Class
- RecentlyReadBlockTest
- Testing Recently Read Block.
Namespace
Drupal\Tests\recently_read\FunctionalCode
protected function setUp() {
// Always call the parent setUp().
parent::setUp();
$this
->drupalCreateContentType([
'type' => 'foo',
]);
$this
->drupalCreateContentType([
'type' => 'bar',
]);
$this
->drupalCreateContentType([
'type' => 'baz',
]);
$this
->config('recently_read.recently_read_type.node')
->set('types', [
'foo',
'baz',
])
->save();
$this
->drupalPlaceBlock('views_block:recently_read_content-block_1', [
'id' => 'recently_read_content',
'items_per_page' => 4,
]);
}