Test generator, update constructor

This commit is contained in:
Barry vd. Heuvel
2024-12-28 19:22:01 +01:00
parent 0abcb7497e
commit f5d940fe0f
9 changed files with 22779 additions and 59 deletions
@@ -0,0 +1,22 @@
<?php
declare(strict_types=1);
namespace Barryvdh\LaravelIdeHelper\Tests\Console\GeneratorCommand\GenerateIdeHelper;
use Barryvdh\LaravelIdeHelper\Console\GeneratorCommand;
use Barryvdh\LaravelIdeHelper\Tests\Console\GeneratorCommand\AbstractGeneratorCommand;
class Test extends AbstractGeneratorCommand
{
public function test(): void
{
$command = $this->app->make(GeneratorCommand::class);
$tester = $this->runCommand($command);
$this->assertSame(0, $tester->getStatusCode());
$this->assertStringContainsString('A new helper file was written to _ide_helper.php', $tester->getDisplay());
$this->assertMatchesMockedSnapshot();
}
}
File diff suppressed because it is too large Load Diff