Skip to content

Commit 5ad417a

Browse files
authored
Merge pull request #1417 from hydephp/code-quality
Clean up test
2 parents 65c81df + dcf69b5 commit 5ad417a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/framework/tests/Unit/BuildTaskServiceUnitTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function testRegisterTaskWithoutChildExtensionThrowsException()
111111
public function testRegisterTaskWithBaseClassThrowsException()
112112
{
113113
$this->expectException(TypeError::class);
114-
$this->service->registerTask(InstansiableTestBuildTask::class);
114+
$this->service->registerTask(InstantiableTestBuildTask::class);
115115
}
116116

117117
public function testRegisterTaskWithAlreadyRegisteredTask()
@@ -293,9 +293,9 @@ public function testServiceFindsTasksInAppDirectory()
293293
$filesystem = Mockery::mock(Filesystem::class, [$kernel])->makePartial()
294294
->shouldReceive('smartGlob')->once()
295295
->with('app/Actions/*BuildTask.php', 0)
296-
->andReturn(collect([/** TODO */]))->getMock();
296+
->andReturn(collect())->getMock();
297297

298-
// Inject mock into Kernel (No better way to do this at the moment)
298+
// Inject mock into Kernel
299299
(new ReflectionClass($kernel))->getProperty('filesystem')->setValue($kernel, $filesystem);
300300

301301
$this->createService();
@@ -322,7 +322,7 @@ protected function verifyMockeryExpectations(): void
322322
}
323323
}
324324

325-
class InstansiableTestBuildTask extends BuildTask
325+
class InstantiableTestBuildTask extends BuildTask
326326
{
327327
public function handle(): void
328328
{

0 commit comments

Comments
 (0)