Skip to content

Commit

Permalink
Update tests to work with Laravel 5.5 (#13)
Browse files Browse the repository at this point in the history
Update tests to work with Laravel 5.5 and add PHP 7.2 tests
  • Loading branch information
Anton Komarev authored Sep 2, 2017
1 parent 3972d64 commit 85d5f1f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ php:
- 5.6
- 7.0
- 7.1
- 7.2

env:
global:
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
"require-dev": {
"friendsofphp/php-cs-fixer": "^1.11",
"mockery/mockery": "^0.9.8",
"orchestra/database": "~3.4.0",
"orchestra/testbench": "~3.4.0",
"phpunit/phpunit": "^5.7"
"orchestra/database": "~3.4.0|~3.5.0",
"orchestra/testbench": "~3.4.0|~3.5.0",
"phpunit/phpunit": "^5.7|^6.0"
},
"autoload": {
"psr-4": {
Expand Down
7 changes: 5 additions & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,18 @@ protected function getPackageProviders($app)
*/
protected function publishPackageMigrations()
{
$this->artisan('vendor:publish', ['--force' => '']);
$this->artisan('vendor:publish', [
'--force' => '',
'--tag' => 'migrations',
]);
}

/**
* Delete all published package migrations.
*/
protected function destroyPackageMigrations()
{
File::cleanDirectory('vendor/orchestra/testbench-core/fixture/database/migrations');
File::cleanDirectory('vendor/orchestra/testbench-core/laravel/database/migrations');
}

/**
Expand Down

0 comments on commit 85d5f1f

Please sign in to comment.