diff options
author | Chaoyi Zha <summermontreal@gmail.com> | 2016-02-20 01:52:16 +0300 |
---|---|---|
committer | Chaoyi Zha <summermontreal@gmail.com> | 2016-02-20 01:52:16 +0300 |
commit | fc62f2d5e23603186b194885e2598393f1ec2d98 (patch) | |
tree | 5b9ea273de6bf400569e401780daf7672500e71e | |
parent | 1e8f9d9a9c84ed5adceb692b392da10bb1ce6650 (diff) |
Rollback db transactions by test cases
-rw-r--r-- | tests/TestCase.php | 4 | ||||
-rw-r--r-- | tests/test_env | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/tests/TestCase.php b/tests/TestCase.php index 65bf8ad..357adae 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -1,4 +1,6 @@ <?php +use Illuminate\Foundation\Testing\DatabaseMigrations; +use Illuminate\Foundation\Testing\DatabaseTransactions; class TestCase extends Laravel\Lumen\Testing\TestCase { @@ -7,6 +9,8 @@ class TestCase extends Laravel\Lumen\Testing\TestCase * * @return \Laravel\Lumen\Application */ + use DatabaseTransactions; + public function createApplication() { return require __DIR__.'/../bootstrap/app.php'; } diff --git a/tests/test_env b/tests/test_env index be9d0cd..8dfe56a 100644 --- a/tests/test_env +++ b/tests/test_env @@ -59,7 +59,7 @@ SESSION_DRIVER=file QUEUE_DRIVER=database # Do not touch -POLR_RELDATE=January 18, 2016 +POLR_RELDATE=February 14, 2016 POLR_VERSION=Travis CI POLR_BASE=32 POLR_SECRET_BYTES=2 |