Skip to content

Commit

Permalink
fix vision tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer committed Dec 11, 2024
1 parent c3190f2 commit 4d1ade8
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion Core/src/ServiceBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ public function vision(array $config = [])
return $this->createClient(DeprecatedVisionClient::class, 'vision', $config);
}
throw new \BadMethodCallException(sprintf(
'This method is no longer supported, create %s directly instead.'.
'This method is no longer supported, create %s directly instead.',
ImageAnnotatorClient::class
));
}
Expand Down
2 changes: 0 additions & 2 deletions Core/tests/Snippet/ServiceBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
use Google\Cloud\Storage\StorageClient;
use Google\Cloud\Trace\TraceClient;
use Google\Cloud\Translate\TranslateClient;
use Google\Cloud\Vision\VisionClient;

/**
* @group root
Expand Down Expand Up @@ -63,7 +62,6 @@ public function serviceBuilderMethods()
['speech', SpeechClient::class, 'speech'],
['storage', StorageClient::class, 'storage'],
['trace', TraceClient::class, 'trace'],
['vision', VisionClient::class, 'vision'],
['translate', TranslateClient::class, 'translate']
];
}
Expand Down
4 changes: 0 additions & 4 deletions Core/tests/Unit/ServiceBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
use Google\Cloud\Storage\StorageClient;
use Google\Cloud\Core\Tests\Unit\Fixtures;
use Google\Cloud\Translate\TranslateClient;
use Google\Cloud\Vision\VisionClient;
use GuzzleHttp\Psr7\Response;
use PHPUnit\Framework\TestCase;
use Psr\Http\Message\RequestInterface;
Expand Down Expand Up @@ -190,9 +189,6 @@ public function serviceProvider()
], [
'translate',
TranslateClient::class
], [
'vision',
VisionClient::class
]
];
}
Expand Down
2 changes: 0 additions & 2 deletions Core/tests/Unit/ServicesNotFoundTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ private static function getApis()
"Trace",
"Translate",
"VideoIntelligence",
"Vision",
];
}

Expand All @@ -92,7 +91,6 @@ public function serviceBuilderMethods()
['speech'],
['storage'],
['trace'],
['vision'],
['translate']
];
}
Expand Down

0 comments on commit 4d1ade8

Please sign in to comment.