function ExposedFormTest::assertIds
Same name in other branches
- 9 core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php \Drupal\Tests\views\Functional\Plugin\ExposedFormTest::assertIds()
- 8.9.x core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php \Drupal\Tests\views\Functional\Plugin\ExposedFormTest::assertIds()
- 10 core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php \Drupal\Tests\views\Functional\Plugin\ExposedFormTest::assertIds()
Checks whether the specified ids are the ones displayed in the view output.
@internal
Parameters
int[] $ids: The ids to check.
1 call to ExposedFormTest::assertIds()
- ExposedFormTest::testExposedSortAndItemsPerPage in core/
modules/ views/ tests/ src/ Functional/ Plugin/ ExposedFormTest.php - Tests exposed forms with exposed sort and items per page.
File
-
core/
modules/ views/ tests/ src/ Functional/ Plugin/ ExposedFormTest.php, line 465
Class
- ExposedFormTest
- Tests exposed forms functionality.
Namespace
Drupal\Tests\views\Functional\PluginCode
protected function assertIds(array $ids) : void {
$elements = $this->cssSelect('div.view-test-exposed-form-sort-items-per-page div.views-row span.field-content');
$actual_ids = [];
foreach ($elements as $element) {
$actual_ids[] = (int) $element->getText();
}
$this->assertSame($ids, $actual_ids);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.