You are here

protected function EntityMetadataIntegrationTestCase::assertEmptyArray in Entity API 7

2 calls to EntityMetadataIntegrationTestCase::assertEmptyArray()
EntityMetadataIntegrationTestCase::testBookModule in ./entity.test
Test book module integration.
EntityMetadataIntegrationTestCase::testNodeProperties in ./entity.test
Test all properties of a node.

File

./entity.test, line 1526
Entity CRUD API tests.

Class

EntityMetadataIntegrationTestCase
Tests provided entity property info of the core modules.

Code

protected function assertEmptyArray($wrapper, $name) {
  $this
    ->assertTrue(isset($wrapper->{$name}), 'Property ' . check_plain($name) . ' exists.');
  $this
    ->assertTrue($wrapper->{$name}
    ->value() === array(), 'Property ' . check_plain($name) . ' is an empty array.');
}