Skip to content

Commit 028cc95

Browse files
authored
allow drupal tests to be skipped (GoogleCloudPlatform#297)
1 parent e182c20 commit 028cc95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

appengine/flexible/drupal8/tests/DeployTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class DeployTest extends \PHPUnit_Framework_TestCase
2828
use AppEngineDeploymentTrait;
2929
use ExecuteCommandTrait;
3030

31-
public function beforeDeploy()
31+
public static function beforeDeploy()
3232
{
3333
// verify and set environment variables
3434
self::verifyEnvironmentVariables();
@@ -54,7 +54,7 @@ private static function verifyEnvironmentVariables()
5454
];
5555
foreach ($envVars as $envVar) {
5656
if (false === getenv($envVar)) {
57-
self::fail("Please set the ${envVar} environment variable");
57+
self::markTestSkipped("Please set the ${envVar} environment variable");
5858
}
5959
}
6060
}

0 commit comments

Comments
 (0)