public function PbfAccessByTermRefTest::setUp in Permissions by field 8
Setup and create content with Pbf field.
Overrides PbfBaseTest::setUp
File
- tests/
src/ Functional/ PbfAccessByTermRefTest.php, line 22
Class
- PbfAccessByTermRefTest
- Test access permissions with Pbf field which reference term.
Namespace
Drupal\Tests\pbf\FunctionalCode
public function setUp() {
parent::setUp();
$this->fieldname = 'field_pbf_term';
$this
->attachPbfTermFields($this->vocabulary, $this->fieldname);
$this->article1 = $this
->createSimpleArticle('Article 1', $this->fieldname, $this->term1
->id(), 1, 0, 0, 0);
$this->article2 = $this
->createSimpleArticle('Article 2', $this->fieldname, $this->term1
->id(), 0, 1, 0, 0);
}