19 declare(strict_types=1);
38 require_once __DIR__ .
'/../ContainerMock.php';
46 $this->assertInstanceOf(Slot::class,
new Slot(
48 $this->mock(Blocks::class),
49 $this->mock(LazyProvide::class),
50 $this->mock(Container::class)
58 $this->mock(Blocks::class),
59 $this->mock(LazyProvide::class),
60 $this->mock(Container::class)
63 $this->assertInstanceOf(ShowOnLoginPage::class, $instance->showOnLoginPage());
70 $this->mock(Blocks::class),
71 $this->mock(LazyProvide::class),
72 $this->mock(Container::class)
75 $this->assertInstanceOf(WithdrawProcess::class, $instance->withdrawProcess($this->mock(User::class), $this->mock(Settings::class), $this->fail(...)));
82 $this->mock(Blocks::class),
83 $this->mock(LazyProvide::class),
84 $this->mock(Container::class)
86 $this->assertInstanceOf(Agreement::class, $instance->agreement($this->mock(User::class), $this->mock(Settings::class)));
93 $this->mock(Blocks::class),
94 $this->mock(LazyProvide::class),
95 $this->mock(Container::class)
98 $this->assertInstanceOf(ModifyFooter::class, $instance->modifyFooter($this->mock(User::class)));
103 $instance =
new Slot(
105 $this->mock(Blocks::class),
106 $this->mock(LazyProvide::class),
107 $this->mock(Container::class)
110 $this->assertInstanceOf(SelfRegistration::class, $instance->selfRegistration($this->mock(User::class), $this->fail(...)));
115 $instance = $instance =
new Slot(
117 $this->mock(Blocks::class),
118 $this->mock(LazyProvide::class),
119 $this->mock(Container::class)
122 $this->assertInstanceOf(OnlineStatusFilter::class, $instance->onlineStatusFilter($this->fail(...)));