protected function ViewsDataExportBatchTest::setUp in Views data export 8
Overrides ViewTestBase::setUp
File
- tests/
src/ Functional/ ViewsDataExportBatchTest.php, line 54
Class
- ViewsDataExportBatchTest
- Tests views data export with batch.
Namespace
Drupal\Tests\views_data_export\FunctionalCode
protected function setUp($import_test_views = TRUE) {
parent::setUp($import_test_views);
$this
->createContentType([
'type' => 'page',
]);
foreach (range(0, 9) as $i) {
$this
->createNode([
'status' => TRUE,
'type' => 'page',
]);
$this
->addTestEntity($i + 1, [
'name' => '',
'body' => 'test test',
'type' => 'entity_test_mulrev_changed',
'keywords' => [
'Orange',
'orange',
'örange',
'Orange',
],
'category' => 'item_category',
]);
}
ViewTestData::createTestViews(static::class, [
'views_data_export_test',
]);
$account = $this
->drupalCreateUser([
'access content',
'view test entity',
]);
$this
->drupalLogin($account);
}