File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1313use PhpSchool \PhpWorkshop \MenuItem \ResetProgress ;
1414use PhpSchool \PhpWorkshop \UserState ;
1515use PhpSchool \PhpWorkshop \UserStateSerializer ;
16+ use PhpSchool \PhpWorkshop \WorkshopType ;
1617use PHPUnit_Framework_TestCase ;
1718
1819/**
@@ -33,7 +34,7 @@ public function testFactoryReturnsInstance()
3334
3435 $ exerciseRepository = $ this ->createMock (ExerciseRepository::class);
3536 $ exercise = $ this ->createMock (ExerciseInterface::class);
36- $ exercise ->expects ($ this ->exactly (2 ))
37+ $ exercise ->expects ($ this ->exactly (4 ))
3738 ->method ('getName ' )
3839 ->will ($ this ->returnValue ('Exercise ' ));
3940 $ exerciseRepository
@@ -52,6 +53,7 @@ public function testFactoryReturnsInstance()
5253 'bgColour ' => 'black ' ,
5354 'fgColour ' => 'green ' ,
5455 'workshopTitle ' => 'TITLE ' ,
56+ WorkshopType::class => WorkshopType::STANDARD ()
5557 ];
5658
5759 $ container
You can’t perform that action at this time.
0 commit comments