mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
temp review 1
This commit is contained in:
@@ -495,8 +495,7 @@ abstract class MetaModel
|
||||
return $sModuleName;
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
IssueLog::Error("Cannot compute class properly", null, [$e->getTraceAsString(), $e->getMessage()]);
|
||||
return "";
|
||||
throw new CoreException("Cannot find class module", ['class' => $sClass], '', $e);
|
||||
}
|
||||
|
||||
return 'core';
|
||||
|
||||
@@ -501,7 +501,10 @@ class MetaModelTest extends ItopDataTestCase
|
||||
|
||||
public function testGetCreatedIn_UnknownClass()
|
||||
{
|
||||
$this->assertEquals('', MetaModel::GetModuleName('GABUZOMEU'));
|
||||
$this->expectExceptionMessage("Cannot find class module");
|
||||
$this->expectException(CoreException::class);
|
||||
|
||||
MetaModel::GetModuleName('GABUZOMEU');
|
||||
}
|
||||
|
||||
public function testGetCreatedIn_ClassComingFromCorePhpFile()
|
||||
|
||||
Reference in New Issue
Block a user