protected function ConfigEntityQueryTest::assertResults in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Entity/ConfigEntityQueryTest.php \Drupal\system\Tests\Entity\ConfigEntityQueryTest::assertResults()
Asserts the results as expected regardless of order.
Parameters
array $expected: Array of expected entity IDs.
4 calls to ConfigEntityQueryTest::assertResults()
- ConfigEntityQueryTest::testCaseSensitivity in core/
modules/ system/ src/ Tests/ Entity/ ConfigEntityQueryTest.php - Tests case sensitivity.
- ConfigEntityQueryTest::testConfigEntityQuery in core/
modules/ system/ src/ Tests/ Entity/ ConfigEntityQueryTest.php - Tests basic functionality.
- ConfigEntityQueryTest::testDotted in core/
modules/ system/ src/ Tests/ Entity/ ConfigEntityQueryTest.php - Tests dotted path matching.
- ConfigEntityQueryTest::testStringIdConditions in core/
modules/ system/ src/ Tests/ Entity/ ConfigEntityQueryTest.php - Tests ID conditions.
File
- core/
modules/ system/ src/ Tests/ Entity/ ConfigEntityQueryTest.php, line 661 - Contains \Drupal\system\Tests\Entity\ConfigEntityQueryTest.
Class
- ConfigEntityQueryTest
- Tests Config Entity Query functionality.
Namespace
Drupal\system\Tests\EntityCode
protected function assertResults($expected) {
$this
->assertIdentical(count($this->queryResults), count($expected));
foreach ($expected as $value) {
// This also tests whether $this->queryResults[$value] is even set at all.
$this
->assertIdentical($this->queryResults[$value], $value);
}
}