public function PbfAccessWithFormWidgetValueTest::setUp in Permissions by field 8
Setup and create content whith Pbf field.
Overrides PbfBaseTest::setUp
File
- tests/
src/ Functional/ PbfAccessWithFormWidgetValueTest.php, line 24
Class
- PbfAccessWithFormWidgetValueTest
- Test access permissions with Pbf field which reference node.
Namespace
Drupal\Tests\pbf\FunctionalCode
public function setUp() {
parent::setUp();
$this->fieldname = 'field_pbf_group';
$this
->attachPbfNodeFields($this->fieldname);
// Article 1 is public. Article 2 is private (view only).
$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);
}