mirror of
https://github.com/cydrobolt/polr.git
synced 2024-09-19 23:21:47 +02:00
Rollback db transactions by test cases
This commit is contained in:
parent
1e8f9d9a9c
commit
fc62f2d5e2
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
||||||
|
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||||
|
|
||||||
class TestCase extends Laravel\Lumen\Testing\TestCase
|
class TestCase extends Laravel\Lumen\Testing\TestCase
|
||||||
{
|
{
|
||||||
@ -7,6 +9,8 @@ class TestCase extends Laravel\Lumen\Testing\TestCase
|
|||||||
*
|
*
|
||||||
* @return \Laravel\Lumen\Application
|
* @return \Laravel\Lumen\Application
|
||||||
*/
|
*/
|
||||||
|
use DatabaseTransactions;
|
||||||
|
|
||||||
public function createApplication() {
|
public function createApplication() {
|
||||||
return require __DIR__.'/../bootstrap/app.php';
|
return require __DIR__.'/../bootstrap/app.php';
|
||||||
}
|
}
|
||||||
|
@ -59,7 +59,7 @@ SESSION_DRIVER=file
|
|||||||
QUEUE_DRIVER=database
|
QUEUE_DRIVER=database
|
||||||
|
|
||||||
# Do not touch
|
# Do not touch
|
||||||
POLR_RELDATE=January 18, 2016
|
POLR_RELDATE=February 14, 2016
|
||||||
POLR_VERSION=Travis CI
|
POLR_VERSION=Travis CI
|
||||||
POLR_BASE=32
|
POLR_BASE=32
|
||||||
POLR_SECRET_BYTES=2
|
POLR_SECRET_BYTES=2
|
||||||
|
Loading…
Reference in New Issue
Block a user