public function InfiniteLoopTest::testInfiniteLoop in Entity Share 8.3
Test that a referenced entity is pulled even if not selected.
In a scenario of infinite loop.
File
- modules/
entity_share_client/ tests/ src/ Functional/ InfiniteLoopTest.php, line 88
Class
- InfiniteLoopTest
- Functional test class for infinite loop in content entity reference field.
Namespace
Drupal\Tests\entity_share_client\FunctionalCode
public function testInfiniteLoop() {
// Select only the first referencing entity.
$selected_entities = [
'es_test_content_reference_one',
];
$this
->infiniteLoopTestHelper($selected_entities);
// Reset before starting again.
$this
->resetImportedContent();
// Select only the second referencing entity.
$selected_entities = [
'es_test_content_reference_two',
];
$this
->infiniteLoopTestHelper($selected_entities);
}