File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 13
13
});
14
14
15
15
test ('uses repository controller template ' , function () {
16
-
17
16
fakeGeneratorConfig ();
18
17
19
18
/** @var APIControllerGenerator $generator */
25
24
});
26
25
27
26
test ('uses model controller template ' , function () {
28
-
29
27
config ()->set ('laravel_generator.options.repository_pattern ' , false );
30
28
31
29
fakeGeneratorConfig ();
39
37
});
40
38
41
39
test ('used resource repository controller template ' , function () {
42
-
43
40
config ()->set ('laravel_generator.options.resources ' , true );
44
41
45
42
fakeGeneratorConfig ();
50
47
$ viewName = $ generator ->getViewName ();
51
48
52
49
expect ($ viewName )->toBe ('repository.controller_resource ' );
53
- });
50
+ });
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ function fakeGeneratorConfig()
51
51
$ fakeConfig ->setCommand ($ command );
52
52
$ fakeConfig ->init ();
53
53
54
- app ()->singleton (GeneratorConfig::class, function () use ($ fakeConfig ) {
54
+ app ()->singleton (GeneratorConfig::class, function () use ($ fakeConfig ) {
55
55
return $ fakeConfig ;
56
56
});
57
57
You can’t perform that action at this time.
0 commit comments