You are here

protected function UnitTestBase::assertArrayKeysEqual in Entity Construction Kit (ECK) 8

Asserts that the array keys of an array equal the expected keys.

1 call to UnitTestBase::assertArrayKeysEqual()
EckEntityTest::testBaseFieldDefinitions in tests/src/Unit/EckEntityTest.php
Tests base field definitions.

File

tests/src/Unit/UnitTestBase.php, line 215

Class

UnitTestBase
Base class for unit tests.

Namespace

Drupal\Tests\eck\Unit

Code

protected function assertArrayKeysEqual($expectedKeys, $arrayToAssert) {
  $this
    ->assertEquals($expectedKeys, array_keys($arrayToAssert));
}