Skip to content

Commit f05f999

Browse files
committed
fixup! fixup! Cleanup app bootstrap
1 parent 44c49f4 commit f05f999

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tests/unit/AppInfo/ApplicationTest.php

+3-6
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function testContainerAppName() {
4646

4747
public function queryData() {
4848
return [
49-
['OnlyLoggedInMiddleware', OnlyLoggedInMiddleware::class],
49+
[OnlyLoggedInMiddleware::class],
5050
];
5151
}
5252

@@ -55,10 +55,7 @@ public function queryData() {
5555
* @param string $service
5656
* @param string $expected
5757
*/
58-
public function testContainerQuery($service, $expected = null) {
59-
if ($expected === null) {
60-
$expected = $service;
61-
}
62-
$this->assertTrue($this->container->query($service) instanceof $expected);
58+
public function testContainerQuery($serviceClass) {
59+
$this->assertTrue($this->container->query($serviceClass) instanceof $serviceClass);
6360
}
6461
}

0 commit comments

Comments
 (0)