From d7a8e9d3108c0d27695494fe1a637898cdf1bd50 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Mon, 8 Aug 2016 17:15:03 +0100 Subject: [PATCH] Test that the commands work --- tests/Functional/AppCommandTest.php | 39 +++++++++++++++++++ ...CommandTest.php => ArtisanCommandTest.php} | 4 +- 2 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 tests/Functional/AppCommandTest.php rename tests/Functional/{CommandTest.php => ArtisanCommandTest.php} (91%) diff --git a/tests/Functional/AppCommandTest.php b/tests/Functional/AppCommandTest.php new file mode 100644 index 00000000..9e596c22 --- /dev/null +++ b/tests/Functional/AppCommandTest.php @@ -0,0 +1,39 @@ + + * @author James Brooks + */ +class AppCommandTest extends AbstractTestCase +{ + public function testInstall() + { + $this->assertSame(0, $this->app->make(Kernel::class)->call('app:install')); + } + + public function testReset() + { + $this->assertSame(0, $this->app->make(Kernel::class)->call('app:reset')); + } + + public function testUpdate() + { + $this->assertSame(0, $this->app->make(Kernel::class)->call('app:reset')); + } +} diff --git a/tests/Functional/CommandTest.php b/tests/Functional/ArtisanCommandTest.php similarity index 91% rename from tests/Functional/CommandTest.php rename to tests/Functional/ArtisanCommandTest.php index 7a546e3b..94d2536c 100644 --- a/tests/Functional/CommandTest.php +++ b/tests/Functional/ArtisanCommandTest.php @@ -16,12 +16,12 @@ use Illuminate\Contracts\Console\Kernel; use Illuminate\Foundation\Testing\DatabaseMigrations; /** - * This is the command test class. + * This is the artisan command test class. * * @author Graham Campbell * @author James Brooks */ -class CommandTest extends AbstractTestCase +class ArtisanCommandTest extends AbstractTestCase { use DatabaseMigrations;