From dcbd202fe37e676fd8f7b68ca08c556dca962453 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Thu, 23 Aug 2018 07:18:31 +0800 Subject: [PATCH 1/2] Update gitignore Signed-off-by: Mior Muhammad Zaki --- .gitignore | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 19aa429a2..bf497f192 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ # Composer -composer.lock -vendor/* +/composer.lock +/vendor/* + +# PHPUnit +/coverage/* +/.phpunit.result.cache From a981d06e705eb873f7fbdeb02a86266fe5a31d1e Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Thu, 23 Aug 2018 07:19:49 +0800 Subject: [PATCH 2/2] Add tests to validate issue #226 Signed-off-by: Mior Muhammad Zaki --- tests/Databases/MigrateDatabaseTest.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/Databases/MigrateDatabaseTest.php b/tests/Databases/MigrateDatabaseTest.php index dd96c6857..a3bd63474 100644 --- a/tests/Databases/MigrateDatabaseTest.php +++ b/tests/Databases/MigrateDatabaseTest.php @@ -72,5 +72,14 @@ public function it_runs_the_migrations() $this->assertEquals('hello@orchestraplatform.com', $users->email); $this->assertTrue(\Hash::check('123', $users->password)); + + $columns = \Schema::getColumnListing('testbench_users'); + $this->assertEquals([ + 'id', + 'email', + 'password', + 'created_at', + 'updated_at', + ], $columns); } }