aboutsummaryrefslogtreecommitdiff
path: root/engine/tests
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-11-17 07:49:25 -0500
committercash <cash.costello@gmail.com>2011-11-28 21:43:59 -0500
commit68ee90fc6c1ff9db8d5f90c3276d5a1d3d61873d (patch)
treef3da22114bc44eb5084bcfb8fe622e586a8abc79 /engine/tests
parent082c6fadc72fd9d0c704899c541dc958cbc63e03 (diff)
downloadelgg-68ee90fc6c1ff9db8d5f90c3276d5a1d3d61873d.tar.gz
elgg-68ee90fc6c1ff9db8d5f90c3276d5a1d3d61873d.tar.bz2
Fixes #4094, #4095 fixes casting issues in unit tests - thanks to andres.fortier
Diffstat (limited to 'engine/tests')
-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'));