Browse Source
Merge pull request #61 from nafiesl/laravel_8_upgrade
Laravel 8 upgrade
pull/65/head
Nafies Luthfi
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
2384 additions and
848 deletions
-
composer.json
-
composer.lock
-
phpunit.xml
-
tests/Unit/Helpers/UserPhotoHelperTest.php
|
|
|
@ -4,13 +4,20 @@ |
|
|
|
"keywords": ["framework", "laravel"], |
|
|
|
"license": "MIT", |
|
|
|
"type": "project", |
|
|
|
"repositories": [ |
|
|
|
{ |
|
|
|
"type": "vcs", |
|
|
|
"url": "https://github.com/nafiesl/backup-manager-laravel" |
|
|
|
} |
|
|
|
], |
|
|
|
"require": { |
|
|
|
"php": "^7.3", |
|
|
|
"backup-manager/laravel": "^2.0", |
|
|
|
"backup-manager/laravel": "dev-laravel_8_support", |
|
|
|
"fideloper/proxy": "^4.0", |
|
|
|
"laravel/framework": "^7.0", |
|
|
|
"laravel/framework": "^8.0", |
|
|
|
"laravel/legacy-factories": "^1.0", |
|
|
|
"laravel/tinker": "^2.0", |
|
|
|
"laravel/ui": "^2.0", |
|
|
|
"laravel/ui": "^3.0", |
|
|
|
"luthfi/formfield": "^1.0" |
|
|
|
}, |
|
|
|
"require-dev": { |
|
|
|
@ -19,7 +26,7 @@ |
|
|
|
"fzaninotto/faker": "^1.4", |
|
|
|
"laravel/browser-kit-testing": "^6.0", |
|
|
|
"mockery/mockery": "^1.0", |
|
|
|
"phpunit/phpunit": "^8.5" |
|
|
|
"phpunit/phpunit": "^9.0" |
|
|
|
}, |
|
|
|
"autoload": { |
|
|
|
"classmap": [ |
|
|
|
|
|
|
|
@ -1,27 +1,18 @@ |
|
|
|
<?xml version="1.0" encoding="UTF-8"?> |
|
|
|
<phpunit backupGlobals="false" |
|
|
|
backupStaticAttributes="false" |
|
|
|
bootstrap="bootstrap/autoload.php" |
|
|
|
colors="true" |
|
|
|
convertErrorsToExceptions="true" |
|
|
|
convertNoticesToExceptions="true" |
|
|
|
convertWarningsToExceptions="true" |
|
|
|
processIsolation="false" |
|
|
|
stopOnFailure="false"> |
|
|
|
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" bootstrap="bootstrap/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"> |
|
|
|
<coverage processUncoveredFiles="true"> |
|
|
|
<include> |
|
|
|
<directory suffix=".php">./app</directory> |
|
|
|
</include> |
|
|
|
</coverage> |
|
|
|
<testsuites> |
|
|
|
<testsuite name="Feature"> |
|
|
|
<directory suffix="Test.php">./tests/Feature</directory> |
|
|
|
</testsuite> |
|
|
|
|
|
|
|
<testsuite name="Unit"> |
|
|
|
<directory suffix="Test.php">./tests/Unit</directory> |
|
|
|
</testsuite> |
|
|
|
</testsuites> |
|
|
|
<filter> |
|
|
|
<whitelist processUncoveredFilesFromWhitelist="true"> |
|
|
|
<directory suffix=".php">./app</directory> |
|
|
|
</whitelist> |
|
|
|
</filter> |
|
|
|
<php> |
|
|
|
<env name="APP_ENV" value="testing"/> |
|
|
|
<env name="CACHE_DRIVER" value="array"/> |
|
|
|
|
|
|
|
@ -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 */ |
|
|
|
|