diff --git a/tests/Browser/EnvBar/BitBucketProviderTest.php b/tests/Browser/EnvBar/BitBucketProviderTest.php index 38993b2..3ca2172 100644 --- a/tests/Browser/EnvBar/BitBucketProviderTest.php +++ b/tests/Browser/EnvBar/BitBucketProviderTest.php @@ -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'); @@ -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'); diff --git a/tests/Browser/EnvBar/EnvoyerProviderTest.php b/tests/Browser/EnvBar/EnvoyerProviderTest.php index 82f4a15..1650e1a 100644 --- a/tests/Browser/EnvBar/EnvoyerProviderTest.php +++ b/tests/Browser/EnvBar/EnvoyerProviderTest.php @@ -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'); @@ -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'); diff --git a/tests/Browser/EnvBar/GitHubProviderTest.php b/tests/Browser/EnvBar/GitHubProviderTest.php index b73d0cc..33cd3ab 100644 --- a/tests/Browser/EnvBar/GitHubProviderTest.php +++ b/tests/Browser/EnvBar/GitHubProviderTest.php @@ -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'); @@ -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');