summaryrefslogtreecommitdiff
path: root/tests/Unit/Database/Migration/MigrateTest.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-09-30 19:31:14 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2018-09-30 19:33:14 +0200
commitb46207f91176cf944284c01c213d3f69075377a4 (patch)
tree3d04a46c84c8b66b2d5a56a851249fde80257e28 /tests/Unit/Database/Migration/MigrateTest.php
parent6187eed3bb08f200050a3078bd762b5731dfbe78 (diff)
parent0b0890f425ced27b2204a046296de4cccdac4eb8 (diff)
Merge remote-tracking branch 'MyIgel/session'
Diffstat (limited to 'tests/Unit/Database/Migration/MigrateTest.php')
-rw-r--r--tests/Unit/Database/Migration/MigrateTest.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/Unit/Database/Migration/MigrateTest.php b/tests/Unit/Database/Migration/MigrateTest.php
index c88ad777..2adbed41 100644
--- a/tests/Unit/Database/Migration/MigrateTest.php
+++ b/tests/Unit/Database/Migration/MigrateTest.php
@@ -120,12 +120,12 @@ class MigrateTest extends TestCase
$dbManager->bootEloquent();
$db = $dbManager->getConnection();
$db->useDefaultSchemaGrammar();
- $scheme = $db->getSchemaBuilder();
+ $schema = $db->getSchemaBuilder();
- $app->instance('scheme', $scheme);
- $app->bind(SchemaBuilder::class, 'scheme');
+ $app->instance('schema', $schema);
+ $app->bind(SchemaBuilder::class, 'schema');
- $migration = new Migrate($scheme, $app);
+ $migration = new Migrate($schema, $app);
$messages = [];
$migration->setOutput(function ($msg) use (&$messages) {
@@ -134,7 +134,7 @@ class MigrateTest extends TestCase
$migration->run(__DIR__ . '/Stub', Migrate::UP);
- $this->assertTrue($scheme->hasTable('migrations'));
+ $this->assertTrue($schema->hasTable('migrations'));
$migrations = $db->table('migrations')->get();
$this->assertCount(3, $migrations);
@@ -143,7 +143,7 @@ class MigrateTest extends TestCase
$this->assertTrue($migrations->contains('migration', '2017_12_24_053300_another_stuff'));
$this->assertTrue($migrations->contains('migration', '2022_12_22_221222_add_some_feature'));
- $this->assertTrue($scheme->hasTable('lorem_ipsum'));
+ $this->assertTrue($schema->hasTable('lorem_ipsum'));
$migration->run(__DIR__ . '/Stub', Migrate::DOWN, true);
@@ -155,6 +155,6 @@ class MigrateTest extends TestCase
$migrations = $db->table('migrations')->get();
$this->assertCount(0, $migrations);
- $this->assertFalse($scheme->hasTable('lorem_ipsum'));
+ $this->assertFalse($schema->hasTable('lorem_ipsum'));
}
}