You are here

public function PbfAccessByNodeRefTest::setUp in Permissions by field 8

Setup and create content whith Pbf field.

Overrides PbfBaseTest::setUp

File

tests/src/Functional/PbfAccessByNodeRefTest.php, line 22

Class

PbfAccessByNodeRefTest
Test access permissions with Pbf field which reference node.

Namespace

Drupal\Tests\pbf\Functional

Code

public function setUp() {
  parent::setUp();
  $this->fieldname = 'field_pbf_group';
  $this
    ->attachPbfNodeFields($this->fieldname);
  $this->article1 = $this
    ->createSimpleArticle('Article 1', $this->fieldname, $this->group1
    ->id(), 1, 0, 0, 0);
  $this->article2 = $this
    ->createSimpleArticle('Article 2', $this->fieldname, $this->group1
    ->id(), 0, 1, 0, 0);
}