From 06acac97ba7f32f7bb71c636dc945561009b665c Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Wed, 7 Oct 2020 16:19:54 +0200 Subject: [PATCH] :white_check_mark: Fix tests * update datamodel XML version * Remove \Combodo\iTop\Test\UnitTest\Core\OQLTest::testTypeErrorQueryParser --- application/datamodel.application.xml | 2 +- core/datamodel.core.xml | 8 +++++--- test/core/OQLTest.php | 25 ------------------------- 3 files changed, 6 insertions(+), 29 deletions(-) diff --git a/application/datamodel.application.xml b/application/datamodel.application.xml index f2910b821..b74791dea 100644 --- a/application/datamodel.application.xml +++ b/application/datamodel.application.xml @@ -1,5 +1,5 @@ - + pages/UI.php diff --git a/core/datamodel.core.xml b/core/datamodel.core.xml index 624854e32..3606d3299 100644 --- a/core/datamodel.core.xml +++ b/core/datamodel.core.xml @@ -1,11 +1,13 @@ - + REST Services User - Only users having this profile are allowed to use the REST Web Services (unless 'secure_rest_services' is set to false in the configuration file). - + Only users having this profile are allowed to use the REST Web Services (unless 'secure_rest_services' is set to false + in the configuration file). + + diff --git a/test/core/OQLTest.php b/test/core/OQLTest.php index 32882a0ef..d7b3939a3 100644 --- a/test/core/OQLTest.php +++ b/test/core/OQLTest.php @@ -212,31 +212,6 @@ class OQLTest extends ItopDataTestCase ); } - /** - * @dataProvider TypeErrorQueryProvider - * @depends testOQLSetup - * - * @param $sQuery - * - * @expectedException \CoreException - * - * @throws \OQLException - */ - public function testTypeErrorQueryParser($sQuery) - { - $this->debug($sQuery); - $oOql = new OqlInterpreter($sQuery); - $oOql->ParseQuery(); - } - - public function TypeErrorQueryProvider() - { - return array( - array('SELECT A WHERE A.a MATCHES toto'), - ); - } - - /** * Needs actual datamodel * @depends testOQLSetup