Skip to content

Commit

Permalink
Only run expectsOutputToContain on Laravel 9.2 and above
Browse files Browse the repository at this point in the history
  • Loading branch information
inxilpro committed Jul 5, 2022
1 parent a561450 commit c389359
Show file tree
Hide file tree
Showing 24 changed files with 48 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Commands/Make/MakeCastTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class MakeCastTest extends TestCase

public function test_it_overrides_the_default_command(): void
{
$this->requiresLaravelVersion('9.2.0');

$this->artisan('make:cast', ['--help' => true])
->expectsOutputToContain('--module')
->assertExitCode(0);
Expand Down
2 changes: 2 additions & 0 deletions tests/Commands/Make/MakeChannelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class MakeChannelTest extends TestCase

public function test_it_overrides_the_default_command(): void
{
$this->requiresLaravelVersion('9.2.0');

$this->artisan('make:channel', ['--help' => true])
->expectsOutputToContain('--module')
->assertExitCode(0);
Expand Down
2 changes: 2 additions & 0 deletions tests/Commands/Make/MakeCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class MakeCommandTest extends TestCase

public function test_it_overrides_the_default_command(): void
{
$this->requiresLaravelVersion('9.2.0');

$this->artisan('make:command', ['--help' => true])
->expectsOutputToContain('--module')
->assertExitCode(0);
Expand Down
2 changes: 2 additions & 0 deletions tests/Commands/Make/MakeComponentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class MakeComponentTest extends TestCase

public function test_it_overrides_the_default_command(): void
{
$this->requiresLaravelVersion('9.2.0');

$this->artisan('make:component', ['--help' => true])
->expectsOutputToContain('--module')
->assertExitCode(0);
Expand Down
2 changes: 2 additions & 0 deletions tests/Commands/Make/MakeControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class MakeControllerTest extends TestCase

public function test_it_overrides_the_default_command(): void
{
$this->requiresLaravelVersion('9.2.0');

$this->artisan('make:controller', ['--help' => true])
->expectsOutputToContain('--module')
->assertExitCode(0);
Expand Down
2 changes: 2 additions & 0 deletions tests/Commands/Make/MakeEventTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class MakeEventTest extends TestCase

public function test_it_overrides_the_default_command(): void
{
$this->requiresLaravelVersion('9.2.0');

$this->artisan('make:event', ['--help' => true])
->expectsOutputToContain('--module')
->assertExitCode(0);
Expand Down
2 changes: 2 additions & 0 deletions tests/Commands/Make/MakeExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class MakeExceptionTest extends TestCase

public function test_it_overrides_the_default_command(): void
{
$this->requiresLaravelVersion('9.2.0');

$this->artisan('make:exception', ['--help' => true])
->expectsOutputToContain('--module')
->assertExitCode(0);
Expand Down
2 changes: 2 additions & 0 deletions tests/Commands/Make/MakeFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class MakeFactoryTest extends TestCase

public function test_it_overrides_the_default_command(): void
{
$this->requiresLaravelVersion('9.2.0');

$this->artisan('make:factory', ['--help' => true])
->expectsOutputToContain('--module')
->assertExitCode(0);
Expand Down
2 changes: 2 additions & 0 deletions tests/Commands/Make/MakeJobTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class MakeJobTest extends TestCase

public function test_it_overrides_the_default_command(): void
{
$this->requiresLaravelVersion('9.2.0');

$this->artisan('make:job', ['--help' => true])
->expectsOutputToContain('--module')
->assertExitCode(0);
Expand Down
2 changes: 2 additions & 0 deletions tests/Commands/Make/MakeListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class MakeListenerTest extends TestCase

public function test_it_overrides_the_default_command(): void
{
$this->requiresLaravelVersion('9.2.0');

$this->artisan('make:listener', ['--help' => true])
->expectsOutputToContain('--module')
->assertExitCode(0);
Expand Down
2 changes: 2 additions & 0 deletions tests/Commands/Make/MakeLivewireTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ protected function setUp(): void

public function test_it_overrides_the_default_commands(): void
{
$this->requiresLaravelVersion('9.2.0');

$this->artisan('make:livewire', ['--help' => true])
->expectsOutputToContain('--module')
->assertExitCode(0);
Expand Down
2 changes: 2 additions & 0 deletions tests/Commands/Make/MakeMailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class MakeMailTest extends TestCase

public function test_it_overrides_the_default_command(): void
{
$this->requiresLaravelVersion('9.2.0');

$this->artisan('make:mail', ['--help' => true])
->expectsOutputToContain('--module')
->assertExitCode(0);
Expand Down
2 changes: 2 additions & 0 deletions tests/Commands/Make/MakeMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class MakeMiddlewareTest extends TestCase

public function test_it_overrides_the_default_command(): void
{
$this->requiresLaravelVersion('9.2.0');

$this->artisan('make:middleware', ['--help' => true])
->expectsOutputToContain('--module')
->assertExitCode(0);
Expand Down
2 changes: 2 additions & 0 deletions tests/Commands/Make/MakeMigrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ protected function getDatePrefix()

public function test_it_overrides_the_default_command(): void
{
$this->requiresLaravelVersion('9.2.0');

$this->artisan('make:migration', ['--help' => true])
->expectsOutputToContain('--module')
->assertExitCode(0);
Expand Down
2 changes: 2 additions & 0 deletions tests/Commands/Make/MakeModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class MakeModelTest extends TestCase

public function test_it_overrides_the_default_command(): void
{
$this->requiresLaravelVersion('9.2.0');

$this->artisan('make:model', ['--help' => true])
->expectsOutputToContain('--module')
->assertExitCode(0);
Expand Down
2 changes: 2 additions & 0 deletions tests/Commands/Make/MakeNotificationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class MakeNotificationTest extends TestCase

public function test_it_overrides_the_default_command(): void
{
$this->requiresLaravelVersion('9.2.0');

$this->artisan('make:notification', ['--help' => true])
->expectsOutputToContain('--module')
->assertExitCode(0);
Expand Down
2 changes: 2 additions & 0 deletions tests/Commands/Make/MakeObserverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class MakeObserverTest extends TestCase

public function test_it_overrides_the_default_command(): void
{
$this->requiresLaravelVersion('9.2.0');

$this->artisan('make:observer', ['--help' => true])
->expectsOutputToContain('--module')
->assertExitCode(0);
Expand Down
2 changes: 2 additions & 0 deletions tests/Commands/Make/MakePolicyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class MakePolicyTest extends TestCase

public function test_it_overrides_the_default_command(): void
{
$this->requiresLaravelVersion('9.2.0');

$this->artisan('make:policy', ['--help' => true])
->expectsOutputToContain('--module')
->assertExitCode(0);
Expand Down
2 changes: 2 additions & 0 deletions tests/Commands/Make/MakeProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class MakeProviderTest extends TestCase

public function test_it_overrides_the_default_command(): void
{
$this->requiresLaravelVersion('9.2.0');

$this->artisan('make:provider', ['--help' => true])
->expectsOutputToContain('--module')
->assertExitCode(0);
Expand Down
2 changes: 2 additions & 0 deletions tests/Commands/Make/MakeRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class MakeRequestTest extends TestCase

public function test_it_overrides_the_default_command(): void
{
$this->requiresLaravelVersion('9.2.0');

$this->artisan('make:request', ['--help' => true])
->expectsOutputToContain('--module')
->assertExitCode(0);
Expand Down
2 changes: 2 additions & 0 deletions tests/Commands/Make/MakeResourceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class MakeResourceTest extends TestCase

public function test_it_overrides_the_default_command(): void
{
$this->requiresLaravelVersion('9.2.0');

$this->artisan('make:resource', ['--help' => true])
->expectsOutputToContain('--module')
->assertExitCode(0);
Expand Down
2 changes: 2 additions & 0 deletions tests/Commands/Make/MakeRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class MakeRuleTest extends TestCase

public function test_it_overrides_the_default_command(): void
{
$this->requiresLaravelVersion('9.2.0');

$this->artisan('make:rule', ['--help' => true])
->expectsOutputToContain('--module')
->assertExitCode(0);
Expand Down
2 changes: 2 additions & 0 deletions tests/Commands/Make/MakeSeederTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class MakeSeederTest extends TestCase

public function test_it_overrides_the_default_command(): void
{
$this->requiresLaravelVersion('9.2.0');

$this->artisan('make:seeder', ['--help' => true])
->expectsOutputToContain('--module')
->assertExitCode(0);
Expand Down
2 changes: 2 additions & 0 deletions tests/Commands/Make/MakeTestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class MakeTestTest extends TestCase

public function test_it_overrides_the_default_command(): void
{
$this->requiresLaravelVersion('9.2.0');

$this->artisan('make:test', ['--help' => true])
->expectsOutputToContain('--module')
->assertExitCode(0);
Expand Down

0 comments on commit c389359

Please sign in to comment.