@@ -39,7 +39,7 @@ public function test_it_generates_a_new_helper_class()
39
39
{
40
40
$ code = $ this ->artisan ('module:make-helper ' , ['name ' => 'MyHelper ' , 'module ' => 'Blog ' ]);
41
41
42
- $ this ->assertTrue (is_file ($ this ->modulePath .'/Helpers/MyHelper.php ' ));
42
+ $ this ->assertTrue (is_file ($ this ->modulePath .'/app/ Helpers/MyHelper.php ' ));
43
43
$ this ->assertSame (0 , $ code );
44
44
}
45
45
@@ -48,23 +48,23 @@ public function test_it_generates_a_new_helper_class_can_override_with_force_opt
48
48
$ this ->artisan ('module:make-helper ' , ['name ' => 'MyHelper ' , 'module ' => 'Blog ' ]);
49
49
$ code = $ this ->artisan ('module:make-helper ' , ['name ' => 'MyHelper ' , 'module ' => 'Blog ' , '--force ' => true ]);
50
50
51
- $ this ->assertTrue (is_file ($ this ->modulePath .'/Helpers/MyHelper.php ' ));
51
+ $ this ->assertTrue (is_file ($ this ->modulePath .'/app/ Helpers/MyHelper.php ' ));
52
52
$ this ->assertSame (0 , $ code );
53
53
}
54
54
55
55
public function test_it_generates_a_new_helper_class_can_use_invoke_option ()
56
56
{
57
57
$ code = $ this ->artisan ('module:make-helper ' , ['name ' => 'MyHelper ' , 'module ' => 'Blog ' , '--invokable ' => true ]);
58
58
59
- $ this ->assertTrue (is_file ($ this ->modulePath .'/Helpers/MyHelper.php ' ));
59
+ $ this ->assertTrue (is_file ($ this ->modulePath .'/app/ Helpers/MyHelper.php ' ));
60
60
$ this ->assertSame (0 , $ code );
61
61
}
62
62
63
63
public function test_it_generated_correct_file_with_content ()
64
64
{
65
65
$ code = $ this ->artisan ('module:make-helper ' , ['name ' => 'MyHelper ' , 'module ' => 'Blog ' ]);
66
66
67
- $ file = $ this ->finder ->get ($ this ->modulePath .'/Helpers/MyHelper.php ' );
67
+ $ file = $ this ->finder ->get ($ this ->modulePath .'/app/ Helpers/MyHelper.php ' );
68
68
69
69
$ this ->assertMatchesSnapshot ($ file );
70
70
$ this ->assertSame (0 , $ code );
@@ -74,15 +74,15 @@ public function test_it_can_generate_a_helper_in_sub_namespace_in_correct_folder
74
74
{
75
75
$ code = $ this ->artisan ('module:make-helper ' , ['name ' => 'Api \\MyHelper ' , 'module ' => 'Blog ' ]);
76
76
77
- $ this ->assertTrue (is_file ($ this ->modulePath .'/Helpers/Api/MyHelper.php ' ));
77
+ $ this ->assertTrue (is_file ($ this ->modulePath .'/app/ Helpers/Api/MyHelper.php ' ));
78
78
$ this ->assertSame (0 , $ code );
79
79
}
80
80
81
81
public function test_it_can_generate_a_helper_in_sub_namespace_with_correct_generated_file ()
82
82
{
83
83
$ code = $ this ->artisan ('module:make-helper ' , ['name ' => 'Api \\MyHelper ' , 'module ' => 'Blog ' ]);
84
84
85
- $ file = $ this ->finder ->get ($ this ->modulePath .'/Helpers/Api/MyHelper.php ' );
85
+ $ file = $ this ->finder ->get ($ this ->modulePath .'/app/ Helpers/Api/MyHelper.php ' );
86
86
87
87
$ this ->assertMatchesSnapshot ($ file );
88
88
$ this ->assertSame (0 , $ code );
0 commit comments