Definition at line 31 of file StartUpStepTest.php.
◆ testConstruct()
ILIAS\LegalDocuments\test\StartUpStepTest::testConstruct |
( |
| ) |
|
Definition at line 35 of file StartUpStepTest.php.
37 $this->assertInstanceOf(StartUpStep::class,
new StartUpStep($this->mock(ilCtrl::class), $this->mock(Conductor::class)));
◆ testExecute()
ILIAS\LegalDocuments\test\StartUpStepTest::testExecute |
( |
| ) |
|
Definition at line 56 of file StartUpStepTest.php.
58 $ctrl = $this->mock(ilCtrl::class);
59 $ctrl->expects(self::once())->method(
'setParameterByClass')->with(
'foo',
'id',
'baz');
60 $ctrl->expects(self::once())->method(
'getLinkTargetByClass')->with([
'foo'],
'bar')->willReturn(
'link');
61 $ctrl->expects(self::once())->method(
'redirectToURL')->with(
'link');
63 $instance =
new StartUpStep($ctrl, $this->mockTree(Conductor::class, [
'intercepting' => [
64 $this->mockTree(Intercept::class, [
'intercept' =>
false,
'id' =>
'ho',
'target' => [
'guiName' =>
'dummy',
'guiPath' => [
'dummy'],
'command' =>
'hej']]),
65 $this->mockTree(Intercept::class, [
'intercept' =>
true,
'id' =>
'baz',
'target' => [
'guiName' =>
'foo',
'guiPath' => [
'foo'],
'command' =>
'bar']]),
◆ testIsInFulfillment()
ILIAS\LegalDocuments\test\StartUpStepTest::testIsInFulfillment |
( |
| ) |
|
Definition at line 71 of file StartUpStepTest.php.
73 $ctrl = $this->mockTree(ilCtrl::class, [
'getCmdClass' =>
'foo']);
75 $instance =
new StartUpStep($ctrl, $this->mockTree(Conductor::class, [
'intercepting' => [
76 $this->mockTree(Intercept::class, [
'intercept' =>
true,
'target' => [
'guiName' =>
'HEJ']]),
77 $this->mockTree(Intercept::class, [
'intercept' =>
true,
'target' => [
'guiName' =>
'FOO']]),
80 $this->assertTrue($instance->isInFulfillment());
◆ testShouldInterceptRequest()
ILIAS\LegalDocuments\test\StartUpStepTest::testShouldInterceptRequest |
( |
| ) |
|
Definition at line 46 of file StartUpStepTest.php.
48 $instance =
new StartUpStep($this->mock(ilCtrl::class), $this->mockTree(Conductor::class, [
'intercepting' => [
49 $this->mockTree(Intercept::class, [
'intercept' =>
false]),
50 $this->mockTree(Intercept::class, [
'intercept' =>
true]),
53 $this->assertTrue($instance->shouldInterceptRequest());
◆ testShouldStoreRequestTarget()
ILIAS\LegalDocuments\test\StartUpStepTest::testShouldStoreRequestTarget |
( |
| ) |
|
Definition at line 40 of file StartUpStepTest.php.
42 $instance =
new StartUpStep($this->mock(ilCtrl::class), $this->mock(Conductor::class));
43 $this->assertTrue($instance->shouldStoreRequestTarget());
The documentation for this class was generated from the following file: