ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\LegalDocuments\test\ConsumerToolbox\SlotTest Class Reference
+ Inheritance diagram for ILIAS\LegalDocuments\test\ConsumerToolbox\SlotTest:
+ Collaboration diagram for ILIAS\LegalDocuments\test\ConsumerToolbox\SlotTest:

Public Member Functions

 testConstruct ()
 
 testShowOnLoginPage ()
 
 testWithdrawProcess ()
 
 testAgreement ()
 
 testModifyFooter ()
 
 testSelfRegistration ()
 
 testOnlineStatusFilter ()
 

Detailed Description

Definition at line 40 of file SlotTest.php.

Member Function Documentation

◆ testAgreement()

ILIAS\LegalDocuments\test\ConsumerToolbox\SlotTest::testAgreement ( )

Definition at line 78 of file SlotTest.php.

78 : void
79 {
80 $instance = new Slot(
81 'foo',
82 $this->mock(Blocks::class),
83 $this->mock(LazyProvide::class),
84 $this->mock(Container::class)
85 );
86 $this->assertInstanceOf(Agreement::class, $instance->agreement($this->mock(User::class), $this->mock(Settings::class)));
87 }

◆ testConstruct()

ILIAS\LegalDocuments\test\ConsumerToolbox\SlotTest::testConstruct ( )

Definition at line 44 of file SlotTest.php.

44 : void
45 {
46 $this->assertInstanceOf(Slot::class, new Slot(
47 'foo',
48 $this->mock(Blocks::class),
49 $this->mock(LazyProvide::class),
50 $this->mock(Container::class)
51 ));
52 }

◆ testModifyFooter()

ILIAS\LegalDocuments\test\ConsumerToolbox\SlotTest::testModifyFooter ( )

Definition at line 89 of file SlotTest.php.

89 : void
90 {
91 $instance = new Slot(
92 'foo',
93 $this->mock(Blocks::class),
94 $this->mock(LazyProvide::class),
95 $this->mock(Container::class)
96 );
97
98 $this->assertInstanceOf(ModifyFooter::class, $instance->modifyFooter($this->mock(User::class)));
99 }

◆ testOnlineStatusFilter()

ILIAS\LegalDocuments\test\ConsumerToolbox\SlotTest::testOnlineStatusFilter ( )

Definition at line 113 of file SlotTest.php.

113 : void
114 {
115 $instance = $instance = new Slot(
116 'foo',
117 $this->mock(Blocks::class),
118 $this->mock(LazyProvide::class),
119 $this->mock(Container::class)
120 );
121
122 $this->assertInstanceOf(OnlineStatusFilter::class, $instance->onlineStatusFilter($this->fail(...)));
123 }

◆ testSelfRegistration()

ILIAS\LegalDocuments\test\ConsumerToolbox\SlotTest::testSelfRegistration ( )

Definition at line 101 of file SlotTest.php.

101 : void
102 {
103 $instance = new Slot(
104 'foo',
105 $this->mock(Blocks::class),
106 $this->mock(LazyProvide::class),
107 $this->mock(Container::class)
108 );
109
110 $this->assertInstanceOf(SelfRegistration::class, $instance->selfRegistration($this->mock(User::class), $this->fail(...)));
111 }

◆ testShowOnLoginPage()

ILIAS\LegalDocuments\test\ConsumerToolbox\SlotTest::testShowOnLoginPage ( )

Definition at line 54 of file SlotTest.php.

54 : void
55 {
56 $instance = new Slot(
57 'foo',
58 $this->mock(Blocks::class),
59 $this->mock(LazyProvide::class),
60 $this->mock(Container::class)
61 );
62
63 $this->assertInstanceOf(ShowOnLoginPage::class, $instance->showOnLoginPage());
64 }

◆ testWithdrawProcess()

ILIAS\LegalDocuments\test\ConsumerToolbox\SlotTest::testWithdrawProcess ( )

Definition at line 66 of file SlotTest.php.

66 : void
67 {
68 $instance = new Slot(
69 'foo',
70 $this->mock(Blocks::class),
71 $this->mock(LazyProvide::class),
72 $this->mock(Container::class)
73 );
74
75 $this->assertInstanceOf(WithdrawProcess::class, $instance->withdrawProcess($this->mock(User::class), $this->mock(Settings::class), $this->fail(...)));
76 }

The documentation for this class was generated from the following file: