protected function ImporterTest::setUp in CSV Importer 8
Overrides BrowserTestBase::setUp
File
- tests/
src/ FunctionalJavascript/ ImporterTest.php, line 25
Class
- ImporterTest
- Tests CSV importer.
Namespace
Drupal\Tests\csv_importer\FunctionalJavascriptCode
protected function setUp() {
parent::setUp();
$account = $this
->drupalCreateUser([
'administer site configuration',
'administer users',
'access user profiles',
]);
$this
->drupalLogin($account);
Node::create([
'nid' => 1111,
'title' => 'CSV importer reference node',
'type' => 'csv_importer_test_content',
])
->save();
User::create([
'uid' => 1111,
'name' => 'John Doe',
'roles' => [
$this
->createAdminRole(),
],
])
->save();
Term::create([
'tid' => 1111,
'name' => 'CSV importer taxonomy reference',
'vid' => 'csv_importer_taxonomy',
]);
}