You are here

public function DevelClientSideFilterTableTest::testPreRenderTable in Devel 4.x

Same name and namespace in other branches
  1. 8.3 tests/src/Unit/DevelClientSideFilterTableTest.php \Drupal\Tests\devel\Unit\DevelClientSideFilterTableTest::testPreRenderTable()
  2. 8.2 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);
}