mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 08:38:45 +02:00
Merge branch 'support/2.7' into develop
# Conflicts: # README.md # composer.json # composer.lock # core/cmdbsource.class.inc.php # core/dbobject.class.php # datamodels/2.x/combodo-db-tools/db_analyzer.class.inc.php # datamodels/2.x/combodo-db-tools/dbtools.php # datamodels/2.x/combodo-db-tools/dictionaries/zh_cn.dict.combodo-db-tools.php # datamodels/2.x/itop-attachments/dictionaries/zh_cn.dict.itop-attachments.php # datamodels/2.x/itop-core-update/dictionaries/zh_cn.dict.itop-core-update.php # dictionaries/zh_cn.dictionary.itop.core.php # dictionaries/zh_cn.dictionary.itop.ui.php # lib/composer/InstalledVersions.php # lib/composer/autoload_classmap.php # lib/composer/autoload_static.php # lib/composer/installed.php # lib/composer/platform_check.php # pages/ajax.render.php # pages/csvimport.php # setup/ajax.dataloader.php # setup/index.php # setup/setuputils.class.inc.php # test/application/UtilsTest.php
This commit is contained in:
@@ -620,7 +620,7 @@ class DBSearchTest extends ItopDataTestCase
|
||||
$sExceptionClass = get_class($e);
|
||||
}
|
||||
|
||||
static::assertEquals('OQLParserException', $sExceptionClass);
|
||||
static::assertEquals('OQLParserSyntaxErrorException', $sExceptionClass);
|
||||
}
|
||||
|
||||
public function testSanity_GroupFunction_In_GroupByPart()
|
||||
@@ -636,7 +636,7 @@ class DBSearchTest extends ItopDataTestCase
|
||||
$sExceptionClass = get_class($e);
|
||||
}
|
||||
|
||||
static::assertEquals('OQLParserException', $sExceptionClass);
|
||||
static::assertEquals('OQLParserSyntaxErrorException', $sExceptionClass);
|
||||
}
|
||||
|
||||
public function testSanity_UnknownGroupFunction_In_SelectPart()
|
||||
@@ -730,4 +730,19 @@ class DBSearchTest extends ItopDataTestCase
|
||||
/** @var \DBObjectSearch $oNestedSearchInExpression */
|
||||
self::assertEquals($bAllowAllData, $oNestedSearchInExpression->IsAllDataAllowed(), 'Nested DBSearch AllowData value');
|
||||
}
|
||||
|
||||
/**
|
||||
* BUG N°4031 check AttributeObjectKey used in JOIN condition
|
||||
* @throws \ConfigException
|
||||
* @throws \CoreException
|
||||
* @throws \MissingQueryArgument
|
||||
* @throws \OQLException
|
||||
*/
|
||||
public function testAttributeObjectKey()
|
||||
{
|
||||
$sQuery = "SELECT II FROM InlineImage AS II JOIN UserRequest AS UR ON II.item_id = UR.id WHERE II.item_class = 'UserRequest'";
|
||||
$oSearch = \DBObjectSearch::FromOQL($sQuery);
|
||||
$oSearch->MakeSelectQuery();
|
||||
self::assertTrue(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user