Backport new command tests
This commit is contained in:
@@ -9,6 +9,8 @@ php:
|
||||
|
||||
sudo: false
|
||||
|
||||
before_install: cp .env.example .env
|
||||
|
||||
install: travis_retry composer install --no-interaction --no-scripts --prefer-source
|
||||
|
||||
script: vendor/bin/phpunit
|
||||
|
||||
39
tests/Functional/AppCommandTest.php
Normal file
39
tests/Functional/AppCommandTest.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Cachet.
|
||||
*
|
||||
* (c) Alt Three Services Limited
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace CachetHQ\Tests\Cachet\Functional;
|
||||
|
||||
use CachetHQ\Tests\Cachet\AbstractTestCase;
|
||||
use Illuminate\Contracts\Console\Kernel;
|
||||
|
||||
/**
|
||||
* This is the app command test class.
|
||||
*
|
||||
* @author Graham Campbell <graham@alt-three.com>
|
||||
* @author James Brooks <james@alt-three.com>
|
||||
*/
|
||||
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'));
|
||||
}
|
||||
}
|
||||
@@ -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 <graham@alt-three.com>
|
||||
* @author James Brooks <james@alt-three.com>
|
||||
*/
|
||||
class CommandTest extends AbstractTestCase
|
||||
class ArtisanCommandTest extends AbstractTestCase
|
||||
{
|
||||
use DatabaseMigrations;
|
||||
|
||||
Reference in New Issue
Block a user