Class IdentificationFactoryTest.
More...
Class IdentificationFactoryTest.
- Author
- Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
@runTestsInSeparateProcesses @preserveGlobalState disabled @backupGlobals disabled @backupStaticAttributes disabled
Definition at line 44 of file IdentificationTest.php.
◆ setUp()
| ILIAS\GlobalScreen\MainMenu\IdentificationTest::setUp |
( |
| ) |
|
|
protected |
@inheritDoc
Definition at line 66 of file IdentificationTest.php.
66 : void
67 {
68 parent::setUp();
69
70 $this->plugin_mock = Mockery::mock(ilPlugin::class);
71
72 $this->provider_mock = Mockery::mock(Provider::class);
73 $this->provider_mock->shouldReceive('getProviderNameForPresentation')->andReturn('Provider')->byDefault();
74
75 $this->provider_factory = Mockery::mock(ProviderFactory::class);
76 $this->provider_factory->shouldReceive('getProviderByClassName')->with(self::MOCKED_PROVIDER_CLASSNAME)->andReturn($this->provider_mock);
77 $this->provider_factory->shouldReceive('isInstanceCreationPossible')->andReturn(true);
78 $this->provider_factory->shouldReceive('isRegistered')->andReturn(true);
79
81 }
Class IdentificationFactory All elements in the GlobalScreen service must be identifiable for the sup...
◆ testMustNotThrowExceptionSinceSerializedIdentificationIsExactLength()
| ILIAS\GlobalScreen\MainMenu\IdentificationTest::testMustNotThrowExceptionSinceSerializedIdentificationIsExactLength |
( |
| ) |
|
◆ testMustThrowExceptionSinceSerializedIdentificationIsTooLong()
| ILIAS\GlobalScreen\MainMenu\IdentificationTest::testMustThrowExceptionSinceSerializedIdentificationIsTooLong |
( |
| ) |
|
◆ $identification
◆ $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: