mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-28 13:08:45 +02:00
N°8760 - add GetCreatedIn to get module name based on DBObject class - everything stored in MetaModel during compilation and autoload
N°8760 - be able to describe from which module a datamodel class comes via MetaModel created_in field
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
use Combodo\iTop\Test\UnitTest\ItopTestCase;
|
||||
|
||||
class IncludeFileReaderTest extends ItopTestCase
|
||||
{
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->RequireOnceItopFile('core/metamodel/IncludeFileReader.php');
|
||||
}
|
||||
|
||||
public function testGetClasses()
|
||||
{
|
||||
$expected = [
|
||||
'iTopOwnershipToken',
|
||||
'iTopOwnershipLock',
|
||||
];
|
||||
$this->assertEquals($expected, IncludeFileReader::GetInstance()->GetClasses(__DIR__.'/resources/ownershiplock.class.inc.php'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user