From 98d5a042fcab72ba1828e65aa0295acf2d6f1c2d Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Mon, 16 Jul 2018 09:38:14 +0000 Subject: [PATCH] Update test for dblayerooSQLite git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4293 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- Tests/dblayerooComplet.php | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/Tests/dblayerooComplet.php b/Tests/dblayerooComplet.php index 3958adf..b7fe3de 100644 --- a/Tests/dblayerooComplet.php +++ b/Tests/dblayerooComplet.php @@ -1063,16 +1063,23 @@ class test_dblayeroo_{ENGINE} extends PHPUnit_Framework_TestCase { $tbl1 = $this->tbl1 (); $res = $tbl1->listTables (); - $this->assertSame (array ( - 0 => 'grouped', - 1 => 'groupedoo', - 2 => 'multiple', - 3 => 'multiple2', - 4 => 'readOR', - 5 => 'rightsoo', - 6 => 'users', - 7 => 'users3', - 8 => 'usersoo', - ), $res); + if ($this->engine === "sqlite") + $this->assertSame (array ( + 0 => 'groupedoo', + 1 => 'rightsoo', + 2 => 'usersoo', + ), $res); + else + $this->assertSame (array ( + 0 => 'grouped', + 1 => 'groupedoo', + 2 => 'multiple', + 3 => 'multiple2', + 4 => 'readOR', + 5 => 'rightsoo', + 6 => 'users', + 7 => 'users3', + 8 => 'usersoo', + ), $res); } }