18
18
use Symfony \Bundle \MakerBundle \FileManager ;
19
19
use Symfony \Bundle \MakerBundle \Generator ;
20
20
use Symfony \Bundle \MakerBundle \MakerInterface ;
21
+ use Symfony \Bundle \MakerBundle \Util \TemplateLinter ;
21
22
use Symfony \Component \Console \Tester \CommandTester ;
22
23
23
24
class MakerCommandTest extends TestCase
@@ -39,7 +40,7 @@ public function testExceptionOnMissingDependencies(): void
39
40
40
41
$ fileManager = $ this ->createMock (FileManager::class);
41
42
42
- $ command = new MakerCommand ($ maker , $ fileManager , new Generator ($ fileManager , 'App ' ));
43
+ $ command = new MakerCommand ($ maker , $ fileManager , new Generator ($ fileManager , 'App ' ), new TemplateLinter () );
43
44
// needed because it's normally set by the Application
44
45
$ command ->setName ('make:foo ' );
45
46
$ tester = new CommandTester ($ command );
@@ -52,7 +53,7 @@ public function testExceptionOnUnknownRootNamespace(): void
52
53
53
54
$ fileManager = $ this ->createMock (FileManager::class);
54
55
55
- $ command = new MakerCommand ($ maker , $ fileManager , new Generator ($ fileManager , 'Unknown ' ));
56
+ $ command = new MakerCommand ($ maker , $ fileManager , new Generator ($ fileManager , 'Unknown ' ), new TemplateLinter () );
56
57
// needed because it's normally set by the Application
57
58
$ command ->setName ('make:foo ' );
58
59
$ tester = new CommandTester ($ command );
0 commit comments