function DevelClientSideFilterTableTest::testPreRenderTable

Same name in other branches
  1. 5.x tests/src/Unit/DevelClientSideFilterTableTest.php \Drupal\Tests\devel\Unit\DevelClientSideFilterTableTest::testPreRenderTable()

@covers ::preRenderTable @dataProvider providerPreRenderTable

File

tests/src/Unit/DevelClientSideFilterTableTest.php, line 46

Class

DevelClientSideFilterTableTest
Tests ClientSideFilterTable element.

Namespace

Drupal\Tests\devel\Unit

Code

public function testPreRenderTable($element, $expected) {
    $result = ClientSideFilterTable::preRenderTable($element);
    $this->assertEquals($expected, $result);
}