protected function EntityViewsDataTest::assertNumericField in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/tests/src/Unit/EntityViewsDataTest.php \Drupal\Tests\views\Unit\EntityViewsDataTest::assertNumericField()
Tests views data for a numeric field.
Parameters
array $data: The views data to check.
3 calls to EntityViewsDataTest::assertNumericField()
- EntityViewsDataTest::testBaseTableFields in core/
modules/ views/ tests/ src/ Unit/ EntityViewsDataTest.php - Tests fields on the base table.
- EntityViewsDataTest::testDataTableFields in core/
modules/ views/ tests/ src/ Unit/ EntityViewsDataTest.php - Tests fields on the data table.
- EntityViewsDataTest::testRevisionTableFields in core/
modules/ views/ tests/ src/ Unit/ EntityViewsDataTest.php - Tests fields on the revision table.
File
- core/
modules/ views/ tests/ src/ Unit/ EntityViewsDataTest.php, line 884 - Contains \Drupal\Tests\views\Unit\EntityViewsDataTest.
Class
- EntityViewsDataTest
- @coversDefaultClass \Drupal\views\EntityViewsData @group Views
Namespace
Drupal\Tests\views\UnitCode
protected function assertNumericField($data) {
$this
->assertEquals('field', $data['field']['id']);
$this
->assertEquals('numeric', $data['filter']['id']);
$this
->assertEquals('numeric', $data['argument']['id']);
$this
->assertEquals('standard', $data['sort']['id']);
}