Skip to content

Commit

Permalink
Fix tests (#22)
Browse files Browse the repository at this point in the history
* Fix tests

* Fix tests with --no-interaction
  • Loading branch information
Jubeki authored Jan 3, 2024
1 parent 886c21c commit 0244587
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Feature/SailServerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public function test_it_can_return_the_sail_install_script()
$response = $this->get('/example-app');

$response->assertStatus(200);
$response->assertSee("laravelsail/php82-composer:latest");
$response->assertSee('bash -c "laravel new example-app && cd example-app && php ./artisan sail:install --with=mysql,redis,meilisearch,mailpit,selenium "', false);
$response->assertSee("laravelsail/php83-composer:latest");
$response->assertSee('bash -c "laravel new example-app --no-interaction && cd example-app && php ./artisan sail:install --with=mysql,redis,meilisearch,mailpit,selenium "', false);
}

public function test_different_php_versions_can_be_picked()
Expand Down Expand Up @@ -49,15 +49,15 @@ public function test_it_removes_duplicated_valid_services()
$response = $this->get('/example-app?with=redis,redis');

$response->assertStatus(200);
$response->assertSee('bash -c "laravel new example-app && cd example-app && php ./artisan sail:install --with=redis "', false);
$response->assertSee('bash -c "laravel new example-app --no-interaction && cd example-app && php ./artisan sail:install --with=redis "', false);
}

public function test_it_adds_the_devcontainer_upon_request()
{
$response = $this->get('/example-app?with=pgsql&devcontainer');

$response->assertStatus(200);
$response->assertSee('bash -c "laravel new example-app && cd example-app && php ./artisan sail:install --with=pgsql --devcontainer"', false);
$response->assertSee('bash -c "laravel new example-app --no-interaction && cd example-app && php ./artisan sail:install --with=pgsql --devcontainer"', false);
}

public function test_it_does_not_accepts_domains_with_a_dot()
Expand Down

0 comments on commit 0244587

Please sign in to comment.