function TableTest::testThemeTableFooter in Zircon Profile 8
Same name in this branch
- 8 core/modules/system/src/Tests/Theme/TableTest.php \Drupal\system\Tests\Theme\TableTest::testThemeTableFooter()
- 8 core/modules/system/src/Tests/Render/Element/TableTest.php \Drupal\system\Tests\Render\Element\TableTest::testThemeTableFooter()
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Render/Element/TableTest.php \Drupal\system\Tests\Render\Element\TableTest::testThemeTableFooter()
Test that the 'footer' option works correctly.
File
- core/
modules/ system/ src/ Tests/ Render/ Element/ TableTest.php, line 131 - Contains \Drupal\system\Tests\Render\Element\TableTest.
Class
- TableTest
- Tests built-in table theme functions.
Namespace
Drupal\system\Tests\Render\ElementCode
function testThemeTableFooter() {
$footer = array(
array(
'data' => array(
1,
),
),
array(
'Foo',
),
);
$table = array(
'#type' => 'table',
'#rows' => array(),
'#footer' => $footer,
);
$this
->render($table);
$this
->removeWhiteSpace();
$this
->assertRaw('<tfoot><tr><td>1</td></tr><tr><td>Foo</td></tr></tfoot>', 'Table footer found.');
}