質問編集履歴
3
誤字の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,6 +6,8 @@
|
|
6
6
|
|
7
7
|
## PHPUnit実行結果
|
8
8
|
|
9
|
+
プロジェクトディレクトリ内でphpunitを実行した結果です。
|
10
|
+
|
9
11
|
![イメージ説明](b830aa572d7f59d0300cfde9b3bbc992.png)
|
10
12
|
|
11
13
|
## API自体は生きている模様
|
2
誤字の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,11 +4,11 @@
|
|
4
4
|
|
5
5
|
|
6
6
|
|
7
|
-
##
|
7
|
+
## PHPUnit実行結果
|
8
8
|
|
9
9
|
![イメージ説明](b830aa572d7f59d0300cfde9b3bbc992.png)
|
10
10
|
|
11
|
-
##
|
11
|
+
## API自体は生きている模様
|
12
12
|
|
13
13
|
![イメージ説明](2dd0408df7bcf5cf0d2e26a6a9ded18f.png)
|
14
14
|
|
1
test追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -208,4 +208,40 @@
|
|
208
208
|
|
209
209
|
|
210
210
|
|
211
|
+
## tests/Feature/RentalTest.php
|
212
|
+
|
213
|
+
```php
|
214
|
+
|
215
|
+
namespace Tests\Feature;
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
use Tests\TestCase;
|
220
|
+
|
221
|
+
use Illuminate\Foundation\Testing\WithoutMiddleware;
|
222
|
+
|
223
|
+
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
class RentalTest extends TestCase
|
228
|
+
|
229
|
+
{
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
public function testBasicTest()
|
234
|
+
|
235
|
+
{
|
236
|
+
|
237
|
+
$response = $this->get('/api/rentals')->assertStatus(200);
|
238
|
+
|
239
|
+
}
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
}
|
244
|
+
|
245
|
+
```
|
246
|
+
|
211
247
|
よろしくお願いいたします。
|