1
0
mirror of https://github.com/cydrobolt/polr.git synced 2024-09-18 19:52:26 +02:00

Rollback db transactions by test cases

This commit is contained in:
Chaoyi Zha 2016-02-19 17:52:16 -05:00
parent 1e8f9d9a9c
commit fc62f2d5e2
2 changed files with 5 additions and 1 deletions

View File

@ -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';
}

View File

@ -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