Skip to content

Commit

Permalink
Merge pull request #1417 from hydephp/code-quality
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Oct 29, 2023
1 parent 0724521 commit 55e1f18
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Unit/BuildTaskServiceUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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();
Expand All @@ -322,7 +322,7 @@ protected function verifyMockeryExpectations(): void
}
}

class InstansiableTestBuildTask extends BuildTask
class InstantiableTestBuildTask extends BuildTask
{
public function handle(): void
{
Expand Down

0 comments on commit 55e1f18

Please sign in to comment.