Skip to content

Commit

Permalink
[6.x] Avoid using the env superglobal in the tests (#30923)
Browse files Browse the repository at this point in the history
* Avoid using the env superglobal in the tests

* Update DynamoDbStoreTest.php

* Update DynamoDbStoreTest.php
  • Loading branch information
GrahamCampbell authored and taylorotwell committed Dec 25, 2019
1 parent 8b09d9e commit 1b2779c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Integration/Cache/DynamoDbStoreTest.php
Expand Up @@ -15,7 +15,7 @@ protected function setUp(): void
{
parent::setUp();

if (! isset($_ENV['DYNAMODB_CACHE_TABLE'])) {
if (env('DYNAMODB_CACHE_TABLE') !== null) {
$this->markTestSkipped('DynamoDB not configured.');
}
}
Expand Down

0 comments on commit 1b2779c

Please sign in to comment.