File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -168,7 +168,11 @@ public function testConfigureAuthenticationWithKeyFilePath()
168168
169169 public function testIgnoreKeyFileWhenUsingCredentialsFetcher ()
170170 {
171- $ credentials = new ServiceAccountCredentials ([], Fixtures::SERVICE_ACCOUNT_FIXTURE ());
171+ $ keyFilePath = Fixtures::SERVICE_ACCOUNT_FIXTURE ();
172+ $ key = json_decode (file_get_contents ($ keyFilePath ), true );
173+ $ key ['private_key ' ] = 'xxx ' ;
174+
175+ $ credentials = new ServiceAccountCredentials ([], $ key );
172176
173177 $ conf = $ this ->impl ->call ('configureAuthentication ' , [[
174178 'credentialsFetcher ' => $ credentials ,
@@ -179,7 +183,11 @@ public function testIgnoreKeyFileWhenUsingCredentialsFetcher()
179183
180184 public function testGetProjectIdFromCredentialsFetcher ()
181185 {
182- $ credentials = new ServiceAccountCredentials ([], Fixtures::SERVICE_ACCOUNT_FIXTURE ());
186+ $ keyFilePath = Fixtures::SERVICE_ACCOUNT_FIXTURE ();
187+ $ key = json_decode (file_get_contents ($ keyFilePath ), true );
188+ $ key ['private_key ' ] = 'xxx ' ;
189+
190+ $ credentials = new ServiceAccountCredentials ([], $ key );
183191
184192 $ this ->impl ->call ('configureAuthentication ' , [[
185193 'credentialsFetcher ' => $ credentials ,
You can’t perform that action at this time.
0 commit comments