Commit c4c45acc authored by catch's avatar catch
Browse files

Issue #1868274 by klausi: Fixed Improved EntityNG isset() test coverage.

parent 455a299a
......@@ -134,6 +134,12 @@ public function testReadWrite() {
$this->assertFalse(isset($entity->name[0]->value), 'First name item value is not set.');
$this->assertFalse(isset($entity->name->value), 'Name value is not set.');
$entity->name = NULL;
$this->assertFalse(isset($entity->name), 'Name field is not set.');
$this->assertFalse(isset($entity->name[0]), 'Name field item is not set.');
$this->assertFalse(isset($entity->name[0]->value), 'First name item value is not set.');
$this->assertFalse(isset($entity->name->value), 'Name value is not set.');
$entity->name->value = 'a value';
$this->assertTrue(isset($entity->name->value), 'Name is set.');
unset($entity->name);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment