// Test returned items.
foreach ($items as $item) { // SelectionInterface::getReferenceableEntities() always return escaped
// entity labels.
// @see \Drupal\Core\Entity\EntityReferenceSelection\SelectionInterface::getReferenceableEntities()
$item =
is_string($item) ? Html::
escape($item) :
$item;
$this->
assertContainsEquals($item,
$referenceables[$this->bundle
]);
} // Test ::countReferenceableEntities().
$count_referenceables =
$this->selectionHandler->
countReferenceableEntities($match,
$match_operator);
$this->
assertSame($count_referenceables,
$count_all);
} /**
* Provides test cases for ::testReferenceablesWithNoLabelKey() test.
*
* @return array[]
*/
public function providerTestCases() { return [ // All referenceables, no limit. Expecting 9 items.