diff --git a/tests/Unit/BuildTaskServiceUnitTest.php b/tests/Unit/BuildTaskServiceUnitTest.php index e998a2ba..1b08979d 100644 --- a/tests/Unit/BuildTaskServiceUnitTest.php +++ b/tests/Unit/BuildTaskServiceUnitTest.php @@ -111,7 +111,7 @@ public function testRegisterTaskWithoutChildExtensionThrowsException() public function testRegisterTaskWithBaseClassThrowsException() { $this->expectException(TypeError::class); - $this->service->registerTask(InstansiableTestBuildTask::class); + $this->service->registerTask(InstantiableTestBuildTask::class); } public function testRegisterTaskWithAlreadyRegisteredTask() @@ -293,9 +293,9 @@ public function testServiceFindsTasksInAppDirectory() $filesystem = Mockery::mock(Filesystem::class, [$kernel])->makePartial() ->shouldReceive('smartGlob')->once() ->with('app/Actions/*BuildTask.php', 0) - ->andReturn(collect([/** TODO */]))->getMock(); + ->andReturn(collect())->getMock(); - // Inject mock into Kernel (No better way to do this at the moment) + // Inject mock into Kernel (new ReflectionClass($kernel))->getProperty('filesystem')->setValue($kernel, $filesystem); $this->createService(); @@ -322,7 +322,7 @@ protected function verifyMockeryExpectations(): void } } -class InstansiableTestBuildTask extends BuildTask +class InstantiableTestBuildTask extends BuildTask { public function handle(): void {