diff --git a/core/modules/views/src/Tests/Plugin/StyleTableTest.php b/core/modules/views/src/Tests/Plugin/StyleTableTest.php index e344184..0c423a9 100644 --- a/core/modules/views/src/Tests/Plugin/StyleTableTest.php +++ b/core/modules/views/src/Tests/Plugin/StyleTableTest.php @@ -113,6 +113,20 @@ public function testFieldInColumns() { * Test that a number with the value of "0" is displayed in the table. */ public function testNumericFieldVisible() { + // Adds a new datapoint in the views_test_data table to have a person with + // an age of zero. + $data_set = $this->dataSet(); + $query = db_insert('views_test_data') + ->fields(array_keys($data_set[0])); + $query->values(array( + 'name' => 'James McCartney', + 'age' => 0, + 'job' => 'Baby', + 'created' => gmmktime(6, 30, 10, 1, 1, 2000), + 'status' => 1, + )); + $query->execute(); + $this->drupalGet('test-table'); $result = $this->xpath('//tbody/tr/td[contains(., "Baby")]'); diff --git a/core/modules/views/src/Tests/ViewTestData.php b/core/modules/views/src/Tests/ViewTestData.php index 16aae2b..34fcd44 100644 --- a/core/modules/views/src/Tests/ViewTestData.php +++ b/core/modules/views/src/Tests/ViewTestData.php @@ -270,13 +270,6 @@ public static function dataSet() { 'created' => gmmktime(6, 30, 10, 1, 1, 2000), 'status' => 1, ), - array( - 'name' => 'Test', - 'age' => 0, - 'job' => 'Baby', - 'created' => gmmktime(6, 0, 0, 1, 1, 2000), - 'status' => 1, - ), ); }