From 35da5a0a2f429e2c70dd682ad931c779bd91da91 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sun, 17 Jun 2018 09:41:03 +0100 Subject: [PATCH] Add app tests --- tests/Functional/ArtisanCommandTest.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/Functional/ArtisanCommandTest.php b/tests/Functional/ArtisanCommandTest.php index 1c69d33d..fe72a6a2 100644 --- a/tests/Functional/ArtisanCommandTest.php +++ b/tests/Functional/ArtisanCommandTest.php @@ -25,6 +25,21 @@ class ArtisanCommandTest extends AbstractTestCase { use DatabaseMigrations; + public function testAppInstall() + { + $this->assertSame(0, $this->app->make(Kernel::class)->call('app:install'); + } + + public function testAppReset() + { + $this->assertSame(0, $this->app->make(Kernel::class)->call('app:reset'); + } + + public function testAppUpdate() + { + $this->assertSame(0, $this->app->make(Kernel::class)->call('app:update'); + } + public function testMigrations() { $this->assertSame(0, $this->app->make(Kernel::class)->call('migrate', ['--force' => true]));