From d8c466c6df87763a83e224ab59e62eeda38ccf1f Mon Sep 17 00:00:00 2001 From: Nafies Luthfi Date: Thu, 15 Oct 2020 08:21:08 +0800 Subject: [PATCH] Update phpunit config and file assertion --- phpunit.xml | 55 +++++++++++++----------------- tests/Unit/Helpers/UserPhotoHelperTest.php | 2 +- 2 files changed, 24 insertions(+), 33 deletions(-) diff --git a/phpunit.xml b/phpunit.xml index bec66c3..1e8e0fc 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,34 +1,25 @@ - - - - ./tests/Feature - - - - ./tests/Unit - - - - - ./app - - - - - - - - - - - + + + + ./app + + + + + ./tests/Feature + + + ./tests/Unit + + + + + + + + + + + diff --git a/tests/Unit/Helpers/UserPhotoHelperTest.php b/tests/Unit/Helpers/UserPhotoHelperTest.php index df1bbc9..fd4f413 100644 --- a/tests/Unit/Helpers/UserPhotoHelperTest.php +++ b/tests/Unit/Helpers/UserPhotoHelperTest.php @@ -74,7 +74,7 @@ class UserPhotoHelperTest extends TestCase $this->assertFileExists(storage_path('app/public/images/user_photo_path.jpg')); unlink(storage_path('app/public/images/user_photo_path.jpg')); - $this->assertFileNotExists(storage_path('app/public/images/user_photo_path.jpg')); + $this->assertFileDoesNotExist(storage_path('app/public/images/user_photo_path.jpg')); } /** @test */