aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-11-17 07:49:25 -0500
committerCash Costello <cash.costello@gmail.com>2011-11-17 07:49:25 -0500
commit1403d4978bd0f9944aabc86520d49815c0fdce29 (patch)
tree3aef18a8b88fb78f0b6ff8b74a7594d36673791d /engine
parent4fcf69419052800ab98ce8ee8e239de9f749e028 (diff)
downloadelgg-1403d4978bd0f9944aabc86520d49815c0fdce29.tar.gz
elgg-1403d4978bd0f9944aabc86520d49815c0fdce29.tar.bz2
Fixes #4094, #4095 fixes casting issues in unit tests - thanks to andres.fortier
Diffstat (limited to 'engine')
-rw-r--r--engine/tests/objects/entities.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/engine/tests/objects/entities.php b/engine/tests/objects/entities.php
index c13b4c731..e010a3fa7 100644
--- a/engine/tests/objects/entities.php
+++ b/engine/tests/objects/entities.php
@@ -89,21 +89,21 @@ class ElggCoreEntityTest extends ElggCoreUnitTest {
$this->assertFalse(isset($this->entity->non_existent));
// create metadata
- $this->assertTrue($this->entity->non_existent = 'testing');
+ $this->entity->existent = 'testing';
+ $this->assertIdentical($this->entity->existent, 'testing');
// check metadata set
- $this->assertTrue(isset($this->entity->non_existent));
- $this->assertIdentical($this->entity->non_existent, 'testing');
- $this->assertIdentical($this->entity->getMetaData('non_existent'), 'testing');
+ $this->assertTrue(isset($this->entity->existent));
+ $this->assertIdentical($this->entity->getMetaData('existent'), 'testing');
// check internal metadata array
$metadata = $this->entity->expose_metadata();
- $this->assertIdentical($metadata['non_existent'], 'testing');
+ $this->assertIdentical($metadata['existent'], 'testing');
}
public function testElggEnityGetAndSetAnnotations() {
$this->assertFalse(array_key_exists('non_existent', $this->entity->expose_annotations()));
- $this->assertFalse($this->entity->getAnnotations('non_existent'));
+ $this->assertIdentical($this->entity->getAnnotations('non_existent'), array());
// set and check temp annotation
$this->assertTrue($this->entity->annotate('non_existent', 'testing'));