From 45aefa2e29f66ca94c3048ea0dd0447e2432637e Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 11 Dec 2024 13:01:44 -0800 Subject: [PATCH] fix servicebuilder tests --- Core/src/ServiceBuilder.php | 2 +- Core/tests/Unit/ServiceBuilderTest.php | 5 ----- Core/tests/Unit/ServicesNotFoundTest.php | 2 -- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/Core/src/ServiceBuilder.php b/Core/src/ServiceBuilder.php index fe038426c11c..303ac1f8a815 100644 --- a/Core/src/ServiceBuilder.php +++ b/Core/src/ServiceBuilder.php @@ -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 )); } diff --git a/Core/tests/Unit/ServiceBuilderTest.php b/Core/tests/Unit/ServiceBuilderTest.php index 3667628bb299..806f744d3ef0 100644 --- a/Core/tests/Unit/ServiceBuilderTest.php +++ b/Core/tests/Unit/ServiceBuilderTest.php @@ -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; @@ -180,10 +179,6 @@ public function serviceProvider() SpannerClient::class, [], [$this, 'checkAndSkipGrpcTests'] - ], [ - 'speech', - SpeechClient::class, - ['languageCode' => 'en-US'] ], [ 'storage', StorageClient::class diff --git a/Core/tests/Unit/ServicesNotFoundTest.php b/Core/tests/Unit/ServicesNotFoundTest.php index c4201bf0f703..52460d4d760d 100644 --- a/Core/tests/Unit/ServicesNotFoundTest.php +++ b/Core/tests/Unit/ServicesNotFoundTest.php @@ -71,7 +71,6 @@ private static function getApis() "OsLogin", "PubSub", "Spanner", - "Speech", "Storage", "Trace", "Translate", @@ -89,7 +88,6 @@ public function serviceBuilderMethods() ['language'], ['pubsub'], ['spanner'], - ['speech'], ['storage'], ['trace'], ['vision'],