protected function RelationTestBase::createRelationOctopus in Relation 8
Same name and namespace in other branches
- 8.2 src/Tests/RelationTestBase.php \Drupal\relation\Tests\RelationTestBase::createRelationOctopus()
Creates an Octopus (4-ary) relation.
1 call to RelationTestBase::createRelationOctopus()
- RelationTestBase::setUp in src/
Tests/ RelationTestBase.php - Sets up a Drupal site for running functional and integration tests.
File
- src/
Tests/ RelationTestBase.php, line 231
Class
- RelationTestBase
- Provides common helper methods for Taxonomy module tests.
Namespace
Drupal\relation\TestsCode
protected function createRelationOctopus() {
// Nodes 1, 2, 3, 4 are related.
$this->relation_type_octopus = $this->relation_types['octopus']['id'];
$this->relation_id_octopus = $this
->saveRelation($this->relation_type_octopus, $this->endpoints_4);
}