public function TableTest::testThemeTableNotResponsiveHeaders in Zircon Profile 8
Same name in this branch
- 8 core/modules/system/src/Tests/Theme/TableTest.php \Drupal\system\Tests\Theme\TableTest::testThemeTableNotResponsiveHeaders()
- 8 core/modules/system/src/Tests/Render/Element/TableTest.php \Drupal\system\Tests\Render\Element\TableTest::testThemeTableNotResponsiveHeaders()
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Render/Element/TableTest.php \Drupal\system\Tests\Render\Element\TableTest::testThemeTableNotResponsiveHeaders()
Tests that the 'responsive-table' class is not applied without headers.
File
- core/
modules/ system/ src/ Tests/ Render/ Element/ TableTest.php, line 189 - Contains \Drupal\system\Tests\Render\Element\TableTest.
Class
- TableTest
- Tests built-in table theme functions.
Namespace
Drupal\system\Tests\Render\ElementCode
public function testThemeTableNotResponsiveHeaders() {
$rows = array(
array(
1,
2,
3,
),
array(
4,
5,
6,
),
array(
7,
8,
9,
),
);
$table = array(
'#type' => 'table',
'#rows' => $rows,
'#responsive' => TRUE,
);
$this
->render($table);
$this
->assertNoRaw('responsive-enabled', 'The responsive-enabled class is not applied without table headers.');
}