protected function RelationTestBase::createRelationSymmetric in Relation 8
Same name and namespace in other branches
- 8.2 src/Tests/RelationTestBase.php \Drupal\relation\Tests\RelationTestBase::createRelationSymmetric()
Creates a Symmetric relation.
2 calls to RelationTestBase::createRelationSymmetric()
- RelationAPITest::testRelationQuery in src/
Tests/ RelationAPITest.php - Tests all available methods in RelationQuery.
- RelationTestBase::setUp in src/
Tests/ RelationTestBase.php - Sets up a Drupal site for running functional and integration tests.
File
- src/
Tests/ RelationTestBase.php, line 184
Class
- RelationTestBase
- Provides common helper methods for Taxonomy module tests.
Namespace
Drupal\relation\TestsCode
protected function createRelationSymmetric() {
// Article 1 <--> Page 4
$this->relation_type_symmetric = $this->relation_types['symmetric']['id'];
$this->relation_id_symmetric = $this
->saveRelation($this->relation_type_symmetric, $this->endpoints);
}