Skip to content

Commit

Permalink
Skips test for specific Laravel versions due to functionality not bei…
Browse files Browse the repository at this point in the history
…ng available
  • Loading branch information
craigpaul committed Nov 26, 2023
1 parent 1641f8e commit ed4727e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/CanAddStubbedTestFileViaCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ public function testCanAddStubbedTestFileWhenSupplyingTestNameSuccessfully()

public function testCanAddStubbedTestFileWhenAskedForTestNameSuccessfully()
{
if (version_compare($this->app->version(), '9.49', '<')) {
return $this->markTestSkipped('Prompting for missing input was not available until Laravel v9.49.0');
}

$this->artisan('blitz:make')->expectsQuestion('What should the test be named?', 'AnotherExampleLoadTest')->assertOk();

$this->assertFileExists($this->app->basePath('tests/Blitz/AnotherExampleLoadTest.php'));
Expand Down

0 comments on commit ed4727e

Please sign in to comment.