diff --git a/tests/Functional/CommandTest.php b/tests/Functional/CommandTest.php index a05dadc4..580b2869 100644 --- a/tests/Functional/CommandTest.php +++ b/tests/Functional/CommandTest.php @@ -13,16 +13,40 @@ namespace CachetHQ\Tests\Cachet\Functional; use CachetHQ\Tests\Cachet\AbstractTestCase; use Illuminate\Contracts\Console\Kernel; +use Illuminate\Foundation\Testing\DatabaseMigrations; /** * This is the command test class. * * @author Graham Campbell + * @author James Brooks */ class CommandTest extends AbstractTestCase { + use DatabaseMigrations; + public function testMigrations() { $this->assertSame(0, $this->app->make(Kernel::class)->call('migrate', ['--force' => true])); } + + public function testInstall() + { + $this->assertSame(0, $this->app->make(Kernel::class)->call('app:install')); + } + + public function testUpdate() + { + $this->assertSame(0, $this->app->make(Kernel::class)->call('app:update')); + } + + public function testReset() + { + $this->assertSame(0, $this->app->make(Kernel::class)->call('app:reset')); + } + + public function testSeed() + { + $this->assertSame(0, $this->app->make(Kernel::class)->call('cachet:seed')); + } }