Skip to content

Commit dfd9fb8

Browse files
authored
Fixes failing appengine and vision tests (GoogleCloudPlatform#966)
1 parent c385e9c commit dfd9fb8

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

appengine/flexible/memcache/test/DeployTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,12 @@
1717
namespace Google\Cloud\Test\Memcache;
1818

1919
use Google\Cloud\TestUtils\AppEngineDeploymentTrait;
20-
use Google\Cloud\TestUtils\TestTrait;
2120
use Google\Cloud\TestUtils\FileUtil;
2221
use Symfony\Component\Yaml\Yaml;
2322
use PHPUnit\Framework\TestCase;
2423

2524
class DeployTest extends TestCase
2625
{
27-
use TestTrait;
2826
use AppEngineDeploymentTrait;
2927

3028
public static function beforeDeploy()

appengine/php72/getting-started/test/DeployTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
namespace Google\Cloud\Samples\Bookshelf;
1919

2020
use Google\Cloud\TestUtils\AppEngineDeploymentTrait;
21-
use Google\Cloud\TestUtils\TestTrait;
2221
use Google\Cloud\TestUtils\FileUtil;
2322
use PHPUnit\Framework\TestCase;
2423
use Symfony\Component\Yaml\Yaml;
@@ -28,8 +27,7 @@
2827
*/
2928
class DeployTest extends TestCase
3029
{
31-
use TestTrait,
32-
AppEngineDeploymentTrait;
30+
use AppEngineDeploymentTrait;
3331

3432
private static function beforeDeploy()
3533
{

vision/test/visionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function testLandmarkCommand()
120120
{
121121
$path = __DIR__ . '/data/tower.jpg';
122122
$output = $this->runCommand('landmark', ['path' => $path]);
123-
$this->assertContains('Eiffel', $output);
123+
$this->assertContains('Champ de Mars', $output);
124124
}
125125

126126
public function testLandmarkCommandGcs()
@@ -129,7 +129,7 @@ public function testLandmarkCommandGcs()
129129

130130
$path = 'gs://' . $bucketName . '/vision/tower.jpg';
131131
$output = $this->runCommand('landmark', ['path' => $path]);
132-
$this->assertContains('Eiffel', $output);
132+
$this->assertContains('Champ de Mars', $output);
133133
}
134134

135135
public function testLandmarkCommandWithImageLackingLandmarks()

0 commit comments

Comments
 (0)