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
parent
commit
7eea1ccb49
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      composer.json
  2. 3160
      composer.lock
  3. 55
      phpunit.xml
  4. 2
      tests/Unit/Helpers/UserPhotoHelperTest.php

15
composer.json

@ -4,13 +4,20 @@
"keywords": ["framework", "laravel"], "keywords": ["framework", "laravel"],
"license": "MIT", "license": "MIT",
"type": "project", "type": "project",
"repositories": [
{
"type": "vcs",
"url": "https://github.com/nafiesl/backup-manager-laravel"
}
],
"require": { "require": {
"php": "^7.3", "php": "^7.3",
"backup-manager/laravel": "^2.0",
"backup-manager/laravel": "dev-laravel_8_support",
"fideloper/proxy": "^4.0", "fideloper/proxy": "^4.0",
"laravel/framework": "^7.0",
"laravel/framework": "^8.0",
"laravel/legacy-factories": "^1.0",
"laravel/tinker": "^2.0", "laravel/tinker": "^2.0",
"laravel/ui": "^2.0",
"laravel/ui": "^3.0",
"luthfi/formfield": "^1.0" "luthfi/formfield": "^1.0"
}, },
"require-dev": { "require-dev": {
@ -19,7 +26,7 @@
"fzaninotto/faker": "^1.4", "fzaninotto/faker": "^1.4",
"laravel/browser-kit-testing": "^6.0", "laravel/browser-kit-testing": "^6.0",
"mockery/mockery": "^1.0", "mockery/mockery": "^1.0",
"phpunit/phpunit": "^8.5"
"phpunit/phpunit": "^9.0"
}, },
"autoload": { "autoload": {
"classmap": [ "classmap": [

3160
composer.lock
File diff suppressed because it is too large
View File

55
phpunit.xml

@ -1,34 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?> <?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">
<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"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="QUEUE_DRIVER" value="sync"/>
<env name="DB_CONNECTION" value="sqlite"/>
<env name="DB_DATABASE" value=":memory:"/>
<env name="FILESYSTEM_DRIVER" value="images"/>
</php>
<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>
<php>
<env name="APP_ENV" value="testing"/>
<env name="CACHE_DRIVER" value="array"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="QUEUE_DRIVER" value="sync"/>
<env name="DB_CONNECTION" value="sqlite"/>
<env name="DB_DATABASE" value=":memory:"/>
<env name="FILESYSTEM_DRIVER" value="images"/>
</php>
</phpunit> </phpunit>

2
tests/Unit/Helpers/UserPhotoHelperTest.php

@ -74,7 +74,7 @@ class UserPhotoHelperTest extends TestCase
$this->assertFileExists(storage_path('app/public/images/user_photo_path.jpg')); $this->assertFileExists(storage_path('app/public/images/user_photo_path.jpg'));
unlink(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 */ /** @test */

Loading…
Cancel
Save