Update dblayeroo Tests to check the insert return value correctely

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3921 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2017-09-05 07:35:23 +00:00
parent 826d8851d4
commit b0d215da1b

View File

@@ -181,7 +181,7 @@ class test_dblayeroo_{ENGINE} extends PHPUnit_Framework_TestCase
"object"=>"object"))->execute (); "object"=>"object"))->execute ();
$tbl1->disconnect (); $tbl1->disconnect ();
// As the key is not an autoincrement, the lastInsertID can be 0 or 1 // As the key is not an autoincrement, the lastInsertID can be 0 or 1
$this->assertGreaterThanOrEqual ($res, "0"); $this->assertSame ($res, "group1");
} }
public function test_select2 () public function test_select2 ()
@@ -294,7 +294,7 @@ class test_dblayeroo_{ENGINE} extends PHPUnit_Framework_TestCase
"object"=>"object"))->execute (); "object"=>"object"))->execute ();
$tbl1->disconnect (); $tbl1->disconnect ();
// As the key is not an autoincrement, the lastInsertID can be 0 or 1 // As the key is not an autoincrement, the lastInsertID can be 0 or 1
$this->assertGreaterThanOrEqual ($res, "0"); $this->assertSame ($res, "group1");
} }
/////////////////// ///////////////////