mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°6436 - Add unit test for API introduced in 3.1 (\iFieldRendererMappingsExtension)
This commit is contained in:
@@ -143,6 +143,10 @@ class ApplicationExtensionTest extends ItopCustomDatamodelTestCase
|
||||
\iOnClassInitialization::class,
|
||||
static::ENUM_API_CALL_METHOD_ENUMPLUGINS,
|
||||
],
|
||||
\iFieldRendererMappingsExtension::class => [
|
||||
\iFieldRendererMappingsExtension::class,
|
||||
static::ENUM_API_CALL_METHOD_GETCLASSESFORINTERFACE,
|
||||
],
|
||||
\iModuleExtension::class => [
|
||||
\iModuleExtension::class,
|
||||
static::ENUM_API_CALL_METHOD_ENUMPLUGINS,
|
||||
|
||||
@@ -306,6 +306,19 @@ class ExampleFor_iOnClassInitialization implements \iOnClassInitialization
|
||||
{
|
||||
// Do nothing, we just need the class to exists for the unit test
|
||||
}
|
||||
}
|
||||
]]></content>
|
||||
</snippet>
|
||||
<snippet id="ExampleFor_iFieldRendererMappingsExtension" _delta="define">
|
||||
<placement>core</placement>
|
||||
<rank>0</rank>
|
||||
<content><![CDATA[
|
||||
class ExampleFor_iFieldRendererMappingsExtension implements \iFieldRendererMappingsExtension
|
||||
{
|
||||
public static function RegisterSupportedFields(): array
|
||||
{
|
||||
// Do nothing, we just need the class to exists for the unit test
|
||||
}
|
||||
}
|
||||
]]></content>
|
||||
</snippet>
|
||||
|
||||
Reference in New Issue
Block a user