From 04fb2f6fc8a49498a8de0600e5e9b4172b27b5f0 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Sat, 20 Nov 2010 10:09:20 +0000 Subject: Fixes #2490: attributes initialize to NULL instead of empty string or 0. Updated tests to reflect this git-svn-id: http://code.elgg.org/elgg/trunk@7376 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/tests/objects/users.php | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'engine/tests/objects/users.php') diff --git a/engine/tests/objects/users.php b/engine/tests/objects/users.php index fe5b48b03..c0566c9b4 100644 --- a/engine/tests/objects/users.php +++ b/engine/tests/objects/users.php @@ -46,26 +46,26 @@ class ElggCoreUserTest extends ElggCoreUnitTest { */ public function testElggUserConstructor() { $attributes = array(); - $attributes['guid'] = ''; + $attributes['guid'] = NULL; $attributes['type'] = 'user'; - $attributes['subtype'] = ''; + $attributes['subtype'] = NULL; $attributes['owner_guid'] = get_loggedin_userid(); $attributes['container_guid'] = get_loggedin_userid(); - $attributes['site_guid'] = 0; + $attributes['site_guid'] = NULL; $attributes['access_id'] = ACCESS_PRIVATE; - $attributes['time_created'] = ''; - $attributes['time_updated'] = ''; - $attributes['last_action'] = ''; + $attributes['time_created'] = NULL; + $attributes['time_updated'] = NULL; + $attributes['last_action'] = NULL; $attributes['enabled'] = 'yes'; $attributes['tables_split'] = 2; $attributes['tables_loaded'] = 0; - $attributes['name'] = ''; - $attributes['username'] = ''; - $attributes['password'] = ''; - $attributes['salt'] = ''; - $attributes['email'] = ''; - $attributes['language'] = ''; - $attributes['code'] = ''; + $attributes['name'] = NULL; + $attributes['username'] = NULL; + $attributes['password'] = NULL; + $attributes['salt'] = NULL; + $attributes['email'] = NULL; + $attributes['language'] = NULL; + $attributes['code'] = NULL; $attributes['banned'] = 'no'; $attributes['admin'] = 'no'; ksort($attributes); -- cgit v1.2.3