Skip to content

Commit 979262b

Browse files
DEV-4690 - Add some more info in the skip message
1 parent 9411e5e commit 979262b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/ApiClient/PrintfulApiClientTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class PrintfulApiClientTest extends TestCase
1717
public function testGet_withApiKey_returnsWithNoAuthErrors()
1818
{
1919
if (Credentials::$legacyStoreKey === '') {
20-
$this->markTestSkipped('You need apiKey to be set for this test to run');
20+
$this->markTestSkipped('You need apiKey to be set in Credentials.php for this test to run');
2121
}
2222

2323
$sut = PrintfulApiClient::createLegacyStoreKeyClient(Credentials::$legacyStoreKey);
@@ -39,6 +39,10 @@ public function testGet_withApiKey_returnsWithNoAuthErrors()
3939
*/
4040
public function testGet_withOauthToken_returnsWithNoAuthErrors()
4141
{
42+
if (Credentials::$oAuthToken === '') {
43+
$this->markTestSkipped('You need oAuthToken to be set in Credentials.php for this test to run');
44+
}
45+
4246
$sut = PrintfulApiClient::createOauthClient(Credentials::$oAuthToken);
4347

4448
$this->overrideUrl($sut);

0 commit comments

Comments
 (0)