protected function EntityMetadataIntegrationTestCase::assertEmpty in Entity API 7
3 calls to EntityMetadataIntegrationTestCase::assertEmpty()
- EntityMetadataIntegrationTestCase::testBookModule in ./
entity.test - Test book module integration.
- EntityMetadataIntegrationTestCase::testComments in ./
entity.test - Test properties of a comment.
- EntityMetadataIntegrationTestCase::testNodeProperties in ./
entity.test - Test all properties of a node.
File
- ./
entity.test, line 1521 - Entity CRUD API tests.
Class
- EntityMetadataIntegrationTestCase
- Tests provided entity property info of the core modules.
Code
protected function assertEmpty($wrapper, $name) {
$this
->assertTrue(isset($wrapper->{$name}), 'Property ' . check_plain($name) . ' exists.');
$this
->assertTrue($wrapper->{$name}
->value() === NULL, 'Property ' . check_plain($name) . ' is empty.');
}