Skip to content

Commit db93d9a

Browse files
committed
test: phpunit-watcher auto run once source files are changed
1 parent e4842a4 commit db93d9a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"laravel/laravel": ">=5.5",
2323
"fzaninotto/faker": "~1.4",
2424
"intervention/image": "~2.3",
25-
"laravel/browser-kit-testing": "^6.0"
25+
"laravel/browser-kit-testing": "^6.0",
26+
"spatie/phpunit-watcher": "^1.22.0"
2627
},
2728
"autoload": {
2829
"psr-4": {

tests/ImageUploadTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function testDeleteImages()
133133
->dontSeeInDatabase('test_images', ['id' => 1]);
134134

135135
foreach (range(1, 6) as $index) {
136-
$this->assertFileDoesNotExist(public_path('uploads/' . $images['image' . $index]));
136+
$this->assertFileDoesNotExist(public_path('uploads/'.$images['image'.$index]));
137137
}
138138

139139
$this->visit('admin/images')

0 commit comments

Comments
 (0)