mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
Added classes for testing db queries directly on a test database. Fixed a few insert bugs.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8600 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
54ef159878
commit
9606e263e8
9 changed files with 173 additions and 21 deletions
|
|
@ -227,6 +227,22 @@ class ArgumentTest extends CubridTest {
|
|||
|
||||
$this->assertEquals('(3,21)', $member_srl_argument->getValue());
|
||||
}
|
||||
|
||||
public function testEnsureDefaultValueWithEmptyString(){
|
||||
$homepage_argument = new Argument('homepage', '');
|
||||
$homepage_argument->ensureDefaultValue('');
|
||||
$homepage_argument->checkFilter('homepage');
|
||||
if(!$homepage_argument->isValid()) return $homepage_argument->getErrorMessage();
|
||||
$homepage_argument->setColumnType('varchar');
|
||||
|
||||
|
||||
$this->assertEquals('\'\'', $homepage_argument->getValue());
|
||||
}
|
||||
|
||||
public function testDefaultValue() {
|
||||
$default = new DefaultValue("var", '');
|
||||
$this->assertEquals('\'\'', $default->toString());
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue