You are here

protected function EntityCloneContentRecursiveCircularTest::setUp in Entity Clone 8

Sets the test up.

Overrides NodeTestBase::setUp

File

tests/src/Functional/EntityCloneContentRecursiveCircularTest.php, line 59

Class

EntityCloneContentRecursiveCircularTest
Create a content and test a clone.

Namespace

Drupal\Tests\entity_clone\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->drupalCreateContentType([
    'type' => 'test_content_type',
    'name' => 'Test content type',
    'display_submitted' => FALSE,
  ]);
  $this
    ->createEntityReferenceField('node', 'test_content_type', 'test_field_reference', 'Test field reference', 'node');
  $this
    ->createEntityReferenceField('node', 'test_content_type', 'test_another_field_reference', 'Test another field reference', 'node');
  $this->adminUser = $this
    ->drupalCreateUser($this->permissions);
  $this
    ->drupalLogin($this->adminUser);
}