protected function RelationTestBase::createRelationUnary in Relation 8
Same name and namespace in other branches
- 8.2 src/Tests/RelationTestBase.php \Drupal\relation\Tests\RelationTestBase::createRelationUnary()
Creates an Unary relation.
1 call to RelationTestBase::createRelationUnary()
- RelationTestBase::setUp in src/
Tests/ RelationTestBase.php - Sets up a Drupal site for running functional and integration tests.
File
- src/
Tests/ RelationTestBase.php, line 240
Class
- RelationTestBase
- Provides common helper methods for Taxonomy module tests.
Namespace
Drupal\relation\TestsCode
protected function createRelationUnary() {
// Page 5 <--> Page 5
$this->relation_type_unary = $this->relation_types['unary']['id'];
$this->relation_id_unary = $this
->saveRelation($this->relation_type_unary, $this->endpoints_unary);
}