diff --git a/tests/php-unit-tests/unitary-tests/core/TestGLATest.delta.xml b/tests/php-unit-tests/unitary-tests/core/TestGLATest.delta.xml new file mode 100644 index 000000000..a69608f08 --- /dev/null +++ b/tests/php-unit-tests/unitary-tests/core/TestGLATest.delta.xml @@ -0,0 +1,14 @@ + + + + + + + tested_attribute + + true + + + + + diff --git a/tests/php-unit-tests/unitary-tests/core/TestGLATest.php b/tests/php-unit-tests/unitary-tests/core/TestGLATest.php new file mode 100644 index 000000000..10e876327 --- /dev/null +++ b/tests/php-unit-tests/unitary-tests/core/TestGLATest.php @@ -0,0 +1,39 @@ + + *
  • MakeGroupByQuery
  • + * + * + * @runTestsInSeparateProcesses + * @preserveGlobalState disabled + * @backupGlobals disabled + */ +class TestGLATest extends ItopCustomDatamodelTestCase +{ + /** + * @inheritDoc + */ + public function GetDatamodelDeltaAbsPath(): string + { + return APPROOT.'tests/php-unit-tests/unitary-tests/core/TestGLATest.delta.xml'; + } + + public function testFoo() + { + static::assertFalse(MetaModel::IsValidAttCode('Person', 'non_existing_attribute')); + static::assertTrue(MetaModel::IsValidAttCode('Person', 'tested_attribute')); + } +}