Skip to content

Commit

Permalink
fixing browser tests
Browse files Browse the repository at this point in the history
  • Loading branch information
devajmeireles committed Sep 17, 2024
1 parent 06cf805 commit edb2654
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Browser/EnvBar/BitBucketProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public function see_release(): void
$this->beforeServingApplication(function ($app, Repository $config): void {
Cache::shouldReceive('has')->andReturnTrue();
Cache::shouldReceive('get')->andReturn('v2.0.0');
Cache::shouldReceive('pull')->andReturnNull();

$config->set('envbar.provider', 'bitbucket');

Expand All @@ -42,6 +43,7 @@ public function throw_exception_when_parameters_is_empty(string $token, string $
$this->beforeServingApplication(function ($app, Repository $config) use ($token, $repository): void {
Cache::shouldReceive('has')->andReturnTrue();
Cache::shouldReceive('get')->andReturn('v2.0.0');
Cache::shouldReceive('pull')->andReturnNull();

$config->set('envbar.provider', 'bitbucket');

Expand Down
2 changes: 2 additions & 0 deletions tests/Browser/EnvBar/EnvoyerProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public function see_release(): void
$this->beforeServingApplication(function ($app, Repository $config): void {
Cache::shouldReceive('has')->andReturnTrue();
Cache::shouldReceive('get')->andReturn('v3.0.0');
Cache::shouldReceive('pull')->andReturnNull();

$config->set('envbar.provider', 'envoyer');

Expand All @@ -42,6 +43,7 @@ public function throw_exception_when_parameters_is_empty(string $token, string $
$this->beforeServingApplication(function ($app, Repository $config) use ($token, $project): void {
Cache::shouldReceive('has')->andReturnTrue();
Cache::shouldReceive('get')->andReturn('v3.0.0');
Cache::shouldReceive('pull')->andReturnNull();

$config->set('envbar.provider', 'envoyer');

Expand Down
2 changes: 2 additions & 0 deletions tests/Browser/EnvBar/GitHubProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public function see_release(): void
$this->beforeServingApplication(function ($app, Repository $config): void {
Cache::shouldReceive('has')->andReturnTrue();
Cache::shouldReceive('get')->andReturn('v1.0.0');
Cache::shouldReceive('pull')->andReturnNull();

$config->set('envbar.provider', 'github');

Expand All @@ -42,6 +43,7 @@ public function throw_exception_when_parameters_is_empty(string $token, string $
$this->beforeServingApplication(function ($app, Repository $config) use ($token, $repository): void {
Cache::shouldReceive('has')->andReturnTrue();
Cache::shouldReceive('get')->andReturn('v1.0.0');
Cache::shouldReceive('pull')->andReturnNull();

$config->set('envbar.provider', 'github');

Expand Down

0 comments on commit edb2654

Please sign in to comment.