@@ -83,10 +83,10 @@ public function output_writes_resources_for_render_statements()
83
83
84
84
$ this ->files ->expects ('exists ' )
85
85
->twice ()
86
- ->with ('app/Http/Resources/User .php ' )
86
+ ->with ('app/Http/Resources/UserResource .php ' )
87
87
->andReturns (false , true );
88
88
$ this ->files ->expects ('put ' )
89
- ->with ('app/Http/Resources/User .php ' , $ this ->fixture ('resources/user.php ' ));
89
+ ->with ('app/Http/Resources/UserResource .php ' , $ this ->fixture ('resources/user.php ' ));
90
90
91
91
$ this ->files ->expects ('exists ' )
92
92
->twice ()
@@ -98,7 +98,7 @@ public function output_writes_resources_for_render_statements()
98
98
$ tokens = $ this ->blueprint ->parse ($ this ->fixture ('drafts/resource-statements.yaml ' ));
99
99
$ tree = $ this ->blueprint ->analyze ($ tokens );
100
100
101
- $ this ->assertEquals (['created ' => ['app/Http/Resources/UserCollection.php ' , 'app/Http/Resources/User .php ' ]], $ this ->subject ->output ($ tree ));
101
+ $ this ->assertEquals (['created ' => ['app/Http/Resources/UserCollection.php ' , 'app/Http/Resources/UserResource .php ' ]], $ this ->subject ->output ($ tree ));
102
102
}
103
103
104
104
/**
@@ -118,10 +118,10 @@ public function output_writes_namespaced_classes()
118
118
119
119
$ this ->files ->expects ('exists ' )
120
120
->times (3 )
121
- ->with ('app/Http/Resources/Api/Certificate .php ' )
121
+ ->with ('app/Http/Resources/Api/CertificateResource .php ' )
122
122
->andReturns (false , true , true );
123
123
$ this ->files ->expects ('put ' )
124
- ->with ('app/Http/Resources/Api/Certificate .php ' , $ this ->fixture ('resources/certificate.php ' ));
124
+ ->with ('app/Http/Resources/Api/CertificateResource .php ' , $ this ->fixture ('resources/certificate.php ' ));
125
125
126
126
$ this ->files ->expects ('exists ' )
127
127
->with ('app/Http/Resources/Api/CertificateCollection.php ' )
@@ -133,7 +133,7 @@ public function output_writes_namespaced_classes()
133
133
$ tree = $ this ->blueprint ->analyze ($ tokens );
134
134
135
135
$ this ->assertEquals ([
136
- 'created ' => ['app/Http/Resources/Api/CertificateCollection.php ' , 'app/Http/Resources/Api/Certificate .php ' ],
136
+ 'created ' => ['app/Http/Resources/Api/CertificateCollection.php ' , 'app/Http/Resources/Api/CertificateResource .php ' ],
137
137
], $ this ->subject ->output ($ tree ));
138
138
}
139
139
}
0 commit comments