File: D:/HostingSpaces/SBogers10/blije-gasten.komma.pro/app/Komma/Shop/ArtisanCommands/RunTests.php
<?php
namespace App\Komma\Shop\ArtisanCommands;
use App\Komma\Kms\ArtisanCommands\RunTests as OriginalRunTests;
use App\Komma\Shop\QualityAssurance\TestsController;
class RunTests extends OriginalRunTests
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'shop:test
{flavor? : phpunit, dusk, phpbench. runs all if omitted (PHP Bench is currently not supported anymore.)}
{--filter= : Filter which tests to run. (see phpunit manual)}
{--group= : Only runs tests from the specified group(s). (see phpunit manual)}
{--noprep : add when you don\'t want to prepare the environment}
';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Runs phpunit, dusk tests and phpbench for the shop';
/**
* @var TestsController $testsController
*/
protected $testsController;
public function __construct()
{
parent::__construct();
$this->testsController = app(TestsController::class);
}
/**
* @param string $type
* @param null $flavor
* @return int|string The exit code
*/
protected function runTests($flavor = null, $type = 'kms')
{
return parent::runTests($flavor, 'shop');
}
}