mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 18:13:11 +00:00
* Add templates to Eloquent * Test generator, update constructor * composer fix-style * Add filename test * UPdate test --------- Co-authored-by: laravel-ide-helper <[email protected]>
36 lines
835 B
PHP
36 lines
835 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Barryvdh\LaravelIdeHelper\Tests\Console\GeneratorCommand;
|
|
|
|
use Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider;
|
|
use Barryvdh\LaravelIdeHelper\Tests\SnapshotPhpDriver;
|
|
use Barryvdh\LaravelIdeHelper\Tests\TestCase;
|
|
|
|
abstract class AbstractGeneratorCommand extends TestCase
|
|
{
|
|
protected function setUp(): void
|
|
{
|
|
parent::setUp();
|
|
$this->mockFilesystem();
|
|
}
|
|
|
|
/**
|
|
* Get package providers.
|
|
*
|
|
* @param \Illuminate\Foundation\Application $app
|
|
*
|
|
* @return array
|
|
*/
|
|
protected function getPackageProviders($app)
|
|
{
|
|
return [IdeHelperServiceProvider::class];
|
|
}
|
|
|
|
protected function assertMatchesMockedSnapshot()
|
|
{
|
|
$this->assertMatchesSnapshot($this->mockFilesystemOutput, new SnapshotPhpDriver());
|
|
}
|
|
}
|