Class IdentificationFactoryTest.
More...
◆ setUp()
ILIAS\GlobalScreen\MainMenu\IdentificationTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 52 of file IdentificationTest.php.
56 $this->plugin_mock = Mockery::mock(ilPlugin::class);
58 $this->provider_mock = Mockery::mock(Provider::class);
59 $this->provider_mock->shouldReceive(
'getProviderNameForPresentation')->andReturn(
'Provider')->byDefault();
61 $this->provider_factory = Mockery::mock(ProviderFactoryInterface::class);
62 $this->provider_factory->shouldReceive(
'getProviderByClassName')->with(self::MOCKED_PROVIDER_CLASSNAME)->andReturn($this->provider_mock);
63 $this->provider_factory->shouldReceive(
'isInstanceCreationPossible')->andReturn(
true);
64 $this->provider_factory->shouldReceive(
'isRegistered')->andReturn(
true);
66 $this->identification =
new IdentificationFactory($this->provider_factory);
◆ testMustNotThrowExceptionSinceSerializedIdentificationIsExactLength()
ILIAS\GlobalScreen\MainMenu\IdentificationTest::testMustNotThrowExceptionSinceSerializedIdentificationIsExactLength |
( |
| ) |
|
◆ testMustThrowExceptionSinceSerializedIdentificationIsTooLong()
ILIAS\GlobalScreen\MainMenu\IdentificationTest::testMustThrowExceptionSinceSerializedIdentificationIsTooLong |
( |
| ) |
|
◆ $identification
ILIAS\GlobalScreen\MainMenu\IdentificationTest::$identification |
|
private |
◆ $plugin_mock
ILIAS\GlobalScreen\MainMenu\IdentificationTest::$plugin_mock |
|
private |
◆ $provider_factory
ILIAS\GlobalScreen\MainMenu\IdentificationTest::$provider_factory |
|
private |
◆ $provider_mock
ILIAS\GlobalScreen\MainMenu\IdentificationTest::$provider_mock |
|
private |
◆ MOCKED_PROVIDER_CLASSNAME
const ILIAS\GlobalScreen\MainMenu\IdentificationTest::MOCKED_PROVIDER_CLASSNAME = 'Mockery_1_ILIAS_GlobalScreen_Provider_Provider' |
The documentation for this class was generated from the following file: