Skip to content

Commit

Permalink
[6.x] Implement integration test and in-memory DB (laravel#5169)
Browse files Browse the repository at this point in the history
* Use in-memory DB for testing

* Extend from PHPUnit test case for unit tests
  • Loading branch information
driesvints authored and taylorotwell committed Dec 6, 2019
1 parent 9b66432 commit f4b1dc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
<server name="APP_ENV" value="testing"/>
<server name="BCRYPT_ROUNDS" value="4"/>
<server name="CACHE_DRIVER" value="array"/>
<server name="DB_CONNECTION" value="sqlite"/>
<server name="DB_DATABASE" value=":memory:"/>
<server name="MAIL_DRIVER" value="array"/>
<server name="QUEUE_CONNECTION" value="sync"/>
<server name="SESSION_DRIVER" value="array"/>
Expand Down
3 changes: 1 addition & 2 deletions tests/Unit/ExampleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

namespace Tests\Unit;

use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
use PHPUnit\Framework\TestCase;

class ExampleTest extends TestCase
{
Expand Down

0 comments on commit f4b1dc6

Please sign in to comment.