You've already forked php-flasher
mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-04-05 12:32:55 +01:00
Fix PHPStan errors and test failures, improve PHPDoc documentation ordering
This commit is contained in:
@@ -5,45 +5,30 @@ declare(strict_types=1);
|
||||
namespace Flasher\Tests\Laravel\Command;
|
||||
|
||||
use Flasher\Tests\Laravel\TestCase;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
|
||||
final class InstallCommandTest extends TestCase
|
||||
{
|
||||
public function testExecute(): void
|
||||
{
|
||||
Artisan::call('flasher:install');
|
||||
|
||||
$output = Artisan::output();
|
||||
|
||||
$this->assertStringContainsString('PHPFlasher resources have been successfully installed.', $output);
|
||||
$this->artisan('flasher:install')
|
||||
->assertExitCode(0);
|
||||
}
|
||||
|
||||
public function testExecuteWithConfigOption(): void
|
||||
{
|
||||
Artisan::call('flasher:install', ['--config' => true]);
|
||||
|
||||
$output = Artisan::output();
|
||||
|
||||
$this->assertStringContainsString('Configuration files have been published.', $output);
|
||||
$this->artisan('flasher:install', ['--config' => true])
|
||||
->assertExitCode(0);
|
||||
}
|
||||
|
||||
public function testExecuteWithSymlinkOption(): void
|
||||
{
|
||||
Artisan::call('flasher:install', ['--symlink' => true]);
|
||||
|
||||
$output = Artisan::output();
|
||||
|
||||
$this->assertStringContainsString('Assets were symlinked.', $output);
|
||||
$this->artisan('flasher:install', ['--symlink' => true])
|
||||
->assertExitCode(0);
|
||||
}
|
||||
|
||||
public function testExecuteWithAllOptions(): void
|
||||
{
|
||||
Artisan::call('flasher:install', ['--config' => true, '--symlink' => true]);
|
||||
|
||||
$output = Artisan::output();
|
||||
|
||||
$this->assertStringContainsString('PHPFlasher resources have been successfully installed.', $output);
|
||||
$this->assertStringContainsString('Configuration files have been published.', $output);
|
||||
$this->assertStringContainsString('Assets were symlinked.', $output);
|
||||
$this->artisan('flasher:install', ['--config' => true, '--symlink' => true])
|
||||
->assertExitCode(0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user