function UtilitiesTest::testIsRenderArray

Same name in other branches
  1. 11.x core/modules/sdc/tests/src/Unit/UtilitiesTest.php \Drupal\Tests\sdc\Unit\UtilitiesTest::testIsRenderArray()

@covers ::isRenderArray @dataProvider dataProviderIsRenderArray

File

core/modules/sdc/tests/src/Unit/UtilitiesTest.php, line 23

Class

UtilitiesTest
Unit tests for the Utilities class.

Namespace

Drupal\Tests\sdc\Unit

Code

public function testIsRenderArray($build, $expected) {
    $this->assertSame($expected, Utilities::isRenderArray($build));
}

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