protected function RelationTestBase::createRelationEndPoints in Relation 8
Same name and namespace in other branches
- 8.2 src/Tests/RelationTestBase.php \Drupal\relation\Tests\RelationTestBase::createRelationEndPoints()
Creates end points.
1 call to RelationTestBase::createRelationEndPoints()
- RelationTestBase::setUp in src/
Tests/ RelationTestBase.php - Sets up a Drupal site for running functional and integration tests.
File
- src/
Tests/ RelationTestBase.php, line 101
Class
- RelationTestBase
- Provides common helper methods for Taxonomy module tests.
Namespace
Drupal\relation\TestsCode
protected function createRelationEndPoints() {
$this->endpoints = [
[
'entity_type' => 'node',
'entity_id' => $this->node1
->id(),
],
[
'entity_type' => 'node',
'entity_id' => $this->node4
->id(),
],
];
$this->endpoints_4 = [
[
'entity_type' => 'node',
'entity_id' => $this->node1
->id(),
],
[
'entity_type' => 'node',
'entity_id' => $this->node2
->id(),
],
[
'entity_type' => 'node',
'entity_id' => $this->node3
->id(),
],
[
'entity_type' => 'node',
'entity_id' => $this->node4
->id(),
],
];
$this->endpoints_entitysame = [
[
'entity_type' => 'node',
'entity_id' => $this->node3
->id(),
],
[
'entity_type' => 'node',
'entity_id' => $this->node4
->id(),
],
];
$this->endpoints_entitydifferent = [
[
'entity_type' => 'user',
'entity_id' => $this->user1
->id(),
],
[
'entity_type' => 'node',
'entity_id' => $this->node3
->id(),
],
];
$this->endpoints_unary = [
[
'entity_type' => 'node',
'entity_id' => $this->node5
->id(),
],
];
}