Definition at line 37 of file SlotConstructorTest.php.
◆ testConstruct()
ILIAS\LegalDocuments\test\SlotConstructorTest::testConstruct |
( |
| ) |
|
Definition at line 41 of file SlotConstructorTest.php.
43 $this->assertInstanceOf(SlotConstructor::class,
new SlotConstructor(
'foo', $this->mock(Container::class), $this->mock(UserAction::class)));
◆ testDocument()
ILIAS\LegalDocuments\test\SlotConstructorTest::testDocument |
( |
| ) |
|
Definition at line 58 of file SlotConstructorTest.php.
60 $instance =
new SlotConstructor(
'foo', $this->mock(Container::class), $this->mock(UserAction::class));
61 $this->assertInstanceOf(ProvideDocument::class, $instance->document($this->mock(DocumentRepository::class),
new SelectionMap(), []));
◆ testDocumentRepository()
ILIAS\LegalDocuments\test\SlotConstructorTest::testDocumentRepository |
( |
| ) |
|
Definition at line 64 of file SlotConstructorTest.php.
66 $instance =
new SlotConstructor(
'foo', $this->mock(Container::class), $this->mock(UserAction::class));
67 $this->assertInstanceOf(DatabaseDocumentRepository::class, $instance->documentRepository());
◆ testHistory()
ILIAS\LegalDocuments\test\SlotConstructorTest::testHistory |
( |
| ) |
|
Definition at line 51 of file SlotConstructorTest.php.
53 $document = $this->mockTree(ProvideDocument::class, [
'repository' => $this->mock(DatabaseDocumentRepository::class)]);
54 $instance =
new SlotConstructor(
'foo', $this->mock(Container::class), $this->mock(UserAction::class));
55 $this->assertInstanceOf(ProvideHistory::class, $instance->history($document));
◆ testId()
ILIAS\LegalDocuments\test\SlotConstructorTest::testId |
( |
| ) |
|
Definition at line 46 of file SlotConstructorTest.php.
48 $this->assertSame(
'foo', (
new SlotConstructor(
'foo', $this->mock(Container::class), $this->mock(UserAction::class)))->
id());
◆ testReadOnlyDocuments()
ILIAS\LegalDocuments\test\SlotConstructorTest::testReadOnlyDocuments |
( |
| ) |
|
Definition at line 70 of file SlotConstructorTest.php.
72 $instance =
new SlotConstructor(
'foo', $this->mock(Container::class), $this->mock(UserAction::class));
73 $this->assertInstanceOf(ReadOnlyDocumentRepository::class, $instance->readOnlyDocuments($this->mock(DocumentRepository::class)));
◆ testWithdrawalFinished()
ILIAS\LegalDocuments\test\SlotConstructorTest::testWithdrawalFinished |
( |
| ) |
|
Definition at line 76 of file SlotConstructorTest.php.
References $container.
80 $container = $this->mockTree(Container::class, [
81 'http' => [
'request' => $this->mockTree(ServerRequestInterface::class, [
'getQueryParams' => [
'withdrawal_finished' =>
'foo']])]
84 $instance =
new SlotConstructor(
'foo',
$container, $this->mock(UserAction::class));
86 $proc = $instance->withdrawalFinished(
function () use (&$called):
void {
90 $this->assertFalse($called);
92 $this->assertTrue($called);
◆ testWithdrawalFinishedWithoutQueryParam()
ILIAS\LegalDocuments\test\SlotConstructorTest::testWithdrawalFinishedWithoutQueryParam |
( |
| ) |
|
Definition at line 95 of file SlotConstructorTest.php.
References $container.
99 $container = $this->mockTree(Container::class, [
100 'http' => [
'request' => $this->mockTree(ServerRequestInterface::class, [
'getQueryParams' => []])]
103 $instance =
new SlotConstructor(
'foo',
$container, $this->mock(UserAction::class));
105 $proc = $instance->withdrawalFinished(
function () use (&$called):
void {
109 $this->assertFalse($called);
111 $this->assertFalse($called);
The documentation for this class was generated from the following file: