mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-25 19:48:49 +02:00
N°8796 - Add PHP code style validation in iTop and extensions - format whole code base
This commit is contained in:
@@ -4,7 +4,7 @@ namespace Combodo\iTop\Test\UnitTest\Core;
|
||||
|
||||
class QueryBuilderExpressionsTest extends \Combodo\iTop\Test\UnitTest\ItopCustomDatamodelTestCase
|
||||
{
|
||||
const CREATE_TEST_ORG = true;
|
||||
public const CREATE_TEST_ORG = true;
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
@@ -19,13 +19,13 @@ class QueryBuilderExpressionsTest extends \Combodo\iTop\Test\UnitTest\ItopCustom
|
||||
$oTagA = \MetaModel::NewObject(\TagSetFieldData::GetTagDataClassName('TestObject', 'tagset'), [
|
||||
'code' => 'tagA',
|
||||
'label' => 'Tag A',
|
||||
'description' => 'Tag known as "A"'
|
||||
'description' => 'Tag known as "A"',
|
||||
]);
|
||||
$oTagA->DBInsert();
|
||||
$oTagB = \MetaModel::NewObject(\TagSetFieldData::GetTagDataClassName('TestObject', 'tagset'), [
|
||||
'code' => 'tagB',
|
||||
'label' => 'Tag B',
|
||||
'description' => 'Tag known as "B"'
|
||||
'description' => 'Tag known as "B"',
|
||||
]);
|
||||
$oTagB->DBInsert();
|
||||
|
||||
@@ -185,7 +185,7 @@ class QueryBuilderExpressionsTest extends \Combodo\iTop\Test\UnitTest\ItopCustom
|
||||
// Create an indirection
|
||||
$oSubObject = \MetaModel::NewObject('SubObject', [
|
||||
'name' => 'subobject for '.$iTestObject,
|
||||
'testobject_id' => $iTestObject
|
||||
'testobject_id' => $iTestObject,
|
||||
]);
|
||||
$oSubObject->DBInsert();
|
||||
|
||||
@@ -200,4 +200,4 @@ class QueryBuilderExpressionsTest extends \Combodo\iTop\Test\UnitTest\ItopCustom
|
||||
static::assertTrue($oAttDef->Equals($oObject->Get($sAttCode), $oSubObjectFromDB->Get($sExtFieldAttCode)), "Value of attribute '$sAttCode' not correctly read as an external key");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user