function DevelClientSideFilterTableTest::testPreRenderTable

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

@covers ::preRenderTable @dataProvider providerPreRenderTable

File

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

Class

DevelClientSideFilterTableTest
Tests ClientSideFilterTable element.

Namespace

Drupal\Tests\devel\Unit

Code

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