Update to default value - set it both when value is null or empty string.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8613 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ucorina 2011-07-20 09:54:07 +00:00
parent 98a85cdaa9
commit 8b9468a165
3 changed files with 12 additions and 2 deletions

View file

@ -63,6 +63,16 @@
}
function test_communication_addFriendGroup_NullId(){
$args->member_srl = 202;
$args->title = "Grup";
$args->friend_group_srl = trim(null);
$output = executeQuery("communication.addFriendGroup", $args);
$this->assertEquals(0, $output->error, $output->message);
}
protected function tearDown() {
$db = &DB::getInstance();
$db->_query("DELETE FROM xe_modules WHERE module_srl = 47374");

View file

@ -27,7 +27,7 @@
, "open_rss" = \'Y\'
, "header_text" = \'\'
, "footer_text" = \'\'
, "use_mobile" = \'\'
, "use_mobile" = \'n\'
WHERE "site_srl" = 0
AND "module_srl" = 47374';
$this->_test($xml_file, $argsString, $expected);