Skip to content

Commit

Permalink
fix servicebuilder tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer committed Dec 11, 2024
1 parent b46b925 commit 45aefa2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion Core/src/ServiceBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public function speech(array $config = [])
return $this->createClient(DeprecatedSpeechClient::class, 'speech', $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.',
SpeechClient::class
));
}
Expand Down
5 changes: 0 additions & 5 deletions Core/tests/Unit/ServiceBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
use Google\Cloud\Language\LanguageClient;
use Google\Cloud\Logging\LoggingClient;
use Google\Cloud\Spanner\SpannerClient;
use Google\Cloud\Speech\SpeechClient;
use Google\Cloud\Storage\StorageClient;
use Google\Cloud\Core\Tests\Unit\Fixtures;
use Google\Cloud\Translate\TranslateClient;
Expand Down Expand Up @@ -180,10 +179,6 @@ public function serviceProvider()
SpannerClient::class,
[],
[$this, 'checkAndSkipGrpcTests']
], [
'speech',
SpeechClient::class,
['languageCode' => 'en-US']
], [
'storage',
StorageClient::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 @@ -71,7 +71,6 @@ private static function getApis()
"OsLogin",
"PubSub",
"Spanner",
"Speech",
"Storage",
"Trace",
"Translate",
Expand All @@ -89,7 +88,6 @@ public function serviceBuilderMethods()
['language'],
['pubsub'],
['spanner'],
['speech'],
['storage'],
['trace'],
['vision'],
Expand Down

0 comments on commit 45aefa2

Please sign in to comment.