]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #2597 - fixes some unit tests broken in the reorg of the data models
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 31 Oct 2010 02:01:55 +0000 (02:01 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 31 Oct 2010 02:01:55 +0000 (02:01 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7165 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/tests/objects/entities.php
engine/tests/objects/objects.php
engine/tests/objects/sites.php
engine/tests/objects/users.php

index e147c0a3cc994aa3f118b91875131ec1f0b0fea6..018f7aa02146fa5fad7384d0139cf092f957973e 100644 (file)
@@ -39,8 +39,12 @@ class ElggCoreEntityTest extends ElggCoreUnitTest {
                $test_attributes['enabled'] = 'yes';
                $test_attributes['tables_split'] = 1;
                $test_attributes['tables_loaded'] = 0;
+               ksort($test_attributes);
 
-               $this->assertIdentical($this->entity->expose_attributes(), $test_attributes);
+               $entity_attributes = $this->entity->expose_attributes();
+               ksort($entity_attributes);
+
+               $this->assertIdentical($entity_attributes, $test_attributes);
        }
 
        public function testElggEntityGetAndSetBaseAttributes() {
index b17165a3dad8443601bbdac7510c918f8ea7d918..40c3c635aa8df651ad834951b00f65192f95a9da 100644 (file)
@@ -53,8 +53,12 @@ class ElggCoreObjectTest extends ElggCoreUnitTest {
                $attributes['tables_loaded'] = 0;
                $attributes['title'] = '';
                $attributes['description'] = '';
+               ksort($attributes);
 
-               $this->assertIdentical($this->entity->expose_attributes(), $attributes);
+               $entity_attributes = $this->entity->expose_attributes();
+               ksort($entity_attributes);
+
+               $this->assertIdentical($entity_attributes, $attributes);
        }
 
        public function testElggObjectSave() {
index 7a9198fc25e98db4403db8168d5910b0bb852337..a411f368cbe3253ab8c387227233ee0305f15fab 100644 (file)
@@ -57,8 +57,12 @@ class ElggCoreSiteTest extends ElggCoreUnitTest {
                $attributes['name'] = '';
                $attributes['description'] = '';
                $attributes['url'] = '';
+               ksort($attributes);
 
-               $this->assertIdentical($this->site->expose_attributes(), $attributes);
+               $entity_attributes = $this->entity->expose_attributes();
+               ksort($entity_attributes);
+
+               $this->assertIdentical($entity_attributes, $attributes);
        }
 
        public function testElggSiteSaveAndDelete() {
index b6ba9ea4d3ebd8315861639914ad5e3d4347083c..baf03d0fe1336f9308e4ef340250a6dfac6f2dd4 100644 (file)
@@ -68,8 +68,12 @@ class ElggCoreUserTest extends ElggCoreUnitTest {
                $attributes['code'] = '';
                $attributes['banned'] = 'no';
                $attributes['admin'] = 'no';
+               ksort($attributes);
 
-               $this->assertIdentical($this->user->expose_attributes(), $attributes);
+               $entity_attributes = $this->entity->expose_attributes();
+               ksort($entity_attributes);
+
+               $this->assertIdentical($entity_attributes, $attributes);
        }
 
        public function testElggUserLoad() {