$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() {
$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() {
$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() {
$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() {