function FieldUiTableTest::testReduceOrder

Same name in other branches
  1. 10 core/modules/field_ui/tests/src/Unit/FieldUiTableTest.php \Drupal\Tests\field_ui\Unit\FieldUiTableTest::testReduceOrder()
  2. 11.x core/modules/field_ui/tests/src/Unit/FieldUiTableTest.php \Drupal\Tests\field_ui\Unit\FieldUiTableTest::testReduceOrder()

@covers ::reduceOrder

@dataProvider providerTestReduceOrder

File

core/modules/field_ui/tests/src/Unit/FieldUiTableTest.php, line 19

Class

FieldUiTableTest
@coversDefaultClass \Drupal\field_ui\Element\FieldUiTable

Namespace

Drupal\Tests\field_ui\Unit

Code

public function testReduceOrder($array, $expected) {
    $this->assertSame($expected, array_reduce($array, [
        'Drupal\\field_ui\\Element\\FieldUiTable',
        'reduceOrder',
    ]));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.