Skip to content

Commit

Permalink
stiblilizing Laravel tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DavertMik committed Apr 22, 2019
1 parent 9cce390 commit 672e3fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ before_script:
# Laravel 5
- '[[ "$FRAMEWORK" != "Laravel" ]] || touch framework-tests/storage/testing.sqlite'
- '[[ "$FRAMEWORK" != "Laravel" ]] || php framework-tests/artisan migrate --env=testing --database=sqlite_testing --force'
- '[[ "$FRAMEWORK" != "Laravel" ]] || php framework-tests/artisan config:clear'
# Lumen
- '[[ "$FRAMEWORK" != "Lumen" ]] || cp framework-tests/.env.testing framework-tests/.env'
- '[[ "$FRAMEWORK" != "Lumen" ]] || touch framework-tests/storage/testing.sqlite'
Expand Down
2 changes: 1 addition & 1 deletion src/Codeception/Module/Laravel5.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public function _before(\Codeception\TestInterface $test)
}

if ($this->config['run_database_seeder']) {
$this->callArtisan('db:seed', ['--class' => $this->config['database_seeder_class'], '--quiet' => true ]);
$this->callArtisan('db:seed', ['--class' => $this->config['database_seeder_class'], '--force' => true ]);
}
}

Expand Down

0 comments on commit 672e3fe

Please sign in to comment.