From b0d215da1b877a43dff21f1dca56fc85b7ca8fd0 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Tue, 5 Sep 2017 07:35:23 +0000 Subject: [PATCH] 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 --- Tests/dblayerooComplet.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/dblayerooComplet.php b/Tests/dblayerooComplet.php index aa9c746..627098d 100644 --- a/Tests/dblayerooComplet.php +++ b/Tests/dblayerooComplet.php @@ -181,7 +181,7 @@ class test_dblayeroo_{ENGINE} extends PHPUnit_Framework_TestCase "object"=>"object"))->execute (); $tbl1->disconnect (); // 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 () @@ -294,7 +294,7 @@ class test_dblayeroo_{ENGINE} extends PHPUnit_Framework_TestCase "object"=>"object"))->execute (); $tbl1->disconnect (); // As the key is not an autoincrement, the lastInsertID can be 0 or 1 - $this->assertGreaterThanOrEqual ($res, "0"); + $this->assertSame ($res, "group1"); } ///////////////////