Definition at line 38 of file SlotConstructorTest.php.
◆ testConstruct()
| ILIAS\LegalDocuments\test\SlotConstructorTest::testConstruct |
( |
| ) |
|
Definition at line 42 of file SlotConstructorTest.php.
44 $this->assertInstanceOf(SlotConstructor::class,
new SlotConstructor(
'foo', $this->mock(Container::class), $this->mock(UserAction::class)));
◆ testDocument()
| ILIAS\LegalDocuments\test\SlotConstructorTest::testDocument |
( |
| ) |
|
Definition at line 59 of file SlotConstructorTest.php.
61 $instance =
new SlotConstructor(
'foo', $this->mock(Container::class), $this->mock(UserAction::class));
62 $this->assertInstanceOf(ProvideDocument::class, $instance->document($this->mock(DocumentRepository::class),
new SelectionMap(), []));
◆ testDocumentRepository()
| ILIAS\LegalDocuments\test\SlotConstructorTest::testDocumentRepository |
( |
| ) |
|
Definition at line 65 of file SlotConstructorTest.php.
67 $instance =
new SlotConstructor(
'foo', $this->mock(Container::class), $this->mock(UserAction::class));
68 $this->assertInstanceOf(DatabaseDocumentRepository::class, $instance->documentRepository());
◆ testHistory()
| ILIAS\LegalDocuments\test\SlotConstructorTest::testHistory |
( |
| ) |
|
Definition at line 52 of file SlotConstructorTest.php.
54 $document = $this->mockTree(ProvideDocument::class, [
'repository' => $this->mock(DatabaseDocumentRepository::class)]);
55 $instance =
new SlotConstructor(
'foo', $this->mock(Container::class), $this->mock(UserAction::class));
56 $this->assertInstanceOf(ProvideHistory::class, $instance->history($document));
◆ testId()
| ILIAS\LegalDocuments\test\SlotConstructorTest::testId |
( |
| ) |
|
Definition at line 47 of file SlotConstructorTest.php.
49 $this->assertSame(
'foo', (
new SlotConstructor(
'foo', $this->mock(Container::class), $this->mock(UserAction::class)))->
id());
◆ testReadOnlyDocuments()
| ILIAS\LegalDocuments\test\SlotConstructorTest::testReadOnlyDocuments |
( |
| ) |
|
Definition at line 71 of file SlotConstructorTest.php.
73 $instance =
new SlotConstructor(
'foo', $this->mock(Container::class), $this->mock(UserAction::class));
74 $this->assertInstanceOf(ReadOnlyDocumentRepository::class, $instance->readOnlyDocuments($this->mock(DocumentRepository::class)));
◆ testWithdrawalFinished()
| ILIAS\LegalDocuments\test\SlotConstructorTest::testWithdrawalFinished |
( |
| ) |
|
Definition at line 77 of file SlotConstructorTest.php.
References $container.
81 $container = $this->mockTree(Container::class, [
82 'http' => [
'request' => $this->mockTree(ServerRequestInterface::class, [
'getQueryParams' => [
'withdrawal_finished' =>
'foo']])]
85 $instance =
new SlotConstructor(
'foo',
$container, $this->mock(UserAction::class));
87 $proc = $instance->withdrawalFinished(
function () use (&$called):
void {
91 $this->assertFalse($called);
93 $this->assertTrue($called);
◆ testWithdrawalFinishedWithoutQueryParam()
| ILIAS\LegalDocuments\test\SlotConstructorTest::testWithdrawalFinishedWithoutQueryParam |
( |
| ) |
|
Definition at line 96 of file SlotConstructorTest.php.
References $container.
100 $container = $this->mockTree(Container::class, [
101 'http' => [
'request' => $this->mockTree(ServerRequestInterface::class, [
'getQueryParams' => []])]
104 $instance =
new SlotConstructor(
'foo',
$container, $this->mock(UserAction::class));
106 $proc = $instance->withdrawalFinished(
function () use (&$called):
void {
110 $this->assertFalse($called);
112 $this->assertFalse($called);
The documentation for this class was generated from the following file: