Some checks are pending
Module sub-split / Sub-split (push) Waiting to run
- Base: wintercms/winter branch 1.2 (full framework) - Theme vivespos: Canvas 7 + Bootstrap 5 CDN, custom CSS - Layout: deferred GTM/GA4 tracking, JSON-LD SoftwareApplication - Partials: hero (offline-first), features, modes (offline/nube toggle), screenshots, pricing (3 planes), comparison, FAQ, CTA - Plugin VivesPOS.Site with ContactForm - Dockerfile: PHP 8.2 Apache, port 80, healthcheck - Added winter/wn-pages, blog, sitemap, seo plugins - Active theme set to vivespos
45 lines
1.2 KiB
PHP
45 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace System\Tests\Console;
|
|
|
|
use File;
|
|
use InvalidArgumentException;
|
|
use System\Tests\Bootstrap\TestCase;
|
|
|
|
class CreateCommandTest extends TestCase
|
|
{
|
|
protected function setUp(): void
|
|
{
|
|
parent::setUp();
|
|
|
|
$this->app->setPluginsPath(base_path() . '/modules/system/tests/fixtures/plugins/');
|
|
}
|
|
|
|
public function testCreatingCommand()
|
|
{
|
|
$this->artisan('create:command Winter.Tester TestCommand')
|
|
->assertExitCode(0);
|
|
$this->artisan('create:command Winter.Tester Test1Command')
|
|
->assertExitCode(0);
|
|
|
|
$this->artisan('create:command Winter.Tester4You TestCommand')
|
|
->assertExitCode(0);
|
|
$this->artisan('create:command Winter.Tester4You Test1Command')
|
|
->assertExitCode(0);
|
|
}
|
|
|
|
public function testNotCreatingCommandBeginingWithNumber()
|
|
{
|
|
$this->artisan('create:command Winter.Tester 1Command')->assertFailed();
|
|
$this->artisan('create:command Winter.Tester4You 1Command')->assertFailed();
|
|
}
|
|
|
|
protected function tearDown(): void
|
|
{
|
|
File::deleteDirectory(plugins_path('winter/tester/console'));
|
|
File::deleteDirectory(plugins_path('winter/tester4you'));
|
|
|
|
parent::tearDown();
|
|
}
|
|
}
|