@@ -16,32 +16,39 @@ final class GenericTest extends TestCase {
1616 protected function setUp () : void {
1717 parent ::setUp ();
1818
19- $ this ->sut = new Generic ('' );
19+ $ this ->sut = new Generic ('' , '' );
2020 }
2121
2222 public function test__construct () : void {
2323 $ command = 'some command ' ;
2424 $ arguments = ['some ' , 'arguments ' ];
2525 $ commandFactory = $ this ->createMock (iFlowCommandFactory::class);
2626 $ commandRunner = $ this ->createMock (iRunner::class);
27+ $ taskName = 'some task name ' ;
28+ $ taskDescription = 'some task description ' ;
2729
28- $ this ->sut = new Generic ($ command , $ arguments , $ commandFactory , $ commandRunner );
30+ $ this ->sut = new Generic ($ command , $ taskName , $ arguments, $ taskDescription , $ commandFactory , $ commandRunner );
2931
3032 self ::assertSame ($ command , $ this ->sut ->getCommand ());
3133 self ::assertSame ($ arguments , $ this ->sut ->getArguments ());
3234 self ::assertSame ($ commandFactory , $ this ->sut ->commandFactory );
3335 self ::assertSame ($ commandRunner , $ this ->sut ->commandRunner );
36+ self ::assertSame ($ taskDescription , $ this ->sut ->getDescription ());
37+ self ::assertSame ($ taskName , $ this ->sut ->getName ());
3438 }
3539
3640 public function test__construct_withoutOptionalArguments () : void {
3741 $ command = 'some command ' ;
42+ $ taskName = 'some task name ' ;
3843
39- $ this ->sut = new Generic ($ command );
44+ $ this ->sut = new Generic ($ command, $ taskName );
4045
4146 self ::assertSame ($ command , $ this ->sut ->getCommand ());
4247 self ::assertSame ([], $ this ->sut ->getArguments ());
4348 self ::assertInstanceOf (WithBinaryFromDeployer::class, $ this ->sut ->commandFactory );
4449 self ::assertInstanceOf (WithDeployerFunctions::class, $ this ->sut ->commandRunner );
50+ self ::assertSame ($ taskName , $ this ->sut ->getName ());
51+ self ::assertSame ('' , $ this ->sut ->getDescription ());
4552 }
4653
4754 public function testGetCommand () : void {
0 commit comments