Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit d374961

Browse files
committed
Move test migration into functional test case
1 parent 1606ef9 commit d374961

File tree

2 files changed

+10
-41
lines changed

2 files changed

+10
-41
lines changed

tests/FunctionalTestCase.php

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Adldap\Laravel\Tests;
44

5+
use Illuminate\Support\Facades\Schema;
56
use Orchestra\Testbench\TestCase;
67

78
class FunctionalTestCase extends TestCase
@@ -10,10 +11,15 @@ public function setUp()
1011
{
1112
parent::setUp();
1213

13-
$this->artisan('migrate', [
14-
'--database' => 'testbench',
15-
'--realpath' => realpath(__DIR__.'/stubs/migrations'),
16-
]);
14+
// Create the users table for testing
15+
Schema::create('users', function ($table) {
16+
$table->increments('id');
17+
$table->string('name');
18+
$table->string('email')->unique();
19+
$table->string('password', 60);
20+
$table->rememberToken();
21+
$table->timestamps();
22+
});
1723
}
1824

1925
/**

tests/stubs/migrations/2014_10_12_000000_create_users_table.php

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)