You are here

public function IntegrationTest::setUp in Views Entity Reference Filter 8

Overrides BrowserTestBase::setUp

File

tests/src/Functional/IntegrationTest.php, line 55

Class

IntegrationTest
Tests the integration between Views Entity Reference Filter and Views.

Namespace

Drupal\Tests\verf\Functional

Code

public function setUp() {
  parent::setUp();
  $this->nodeType = $this
    ->drupalCreateContentType();
  $this
    ->createEntityReferenceField('node', $this->nodeType
    ->id(), 'field_refs', 'Refs', 'node');
  $this->admin = $this
    ->drupalCreateUser([], $this
    ->randomString(), true);
  $this->author = $this
    ->drupalCreateUser([
    'view own unpublished content',
  ]);
}