@@ -18,7 +18,7 @@ final class FirebaseProjectManagerTest extends TestCase
1818{
1919 protected function defineEnvironment ($ app ): void
2020 {
21- $ app ['config ' ]->set ('firebase.projects.app.credentials.file ' , __DIR__ . '/_fixtures/service_account.json ' );
21+ $ app ['config ' ]->set ('firebase.projects.app.credentials.file ' , __DIR__ . '/_fixtures/service_account.json ' );
2222 }
2323
2424 /**
@@ -68,12 +68,12 @@ public function calls_are_passed_to_default_project(): void
6868 public function credentials_can_be_configured (): void
6969 {
7070 // Reference credentials
71- $ credentialsPath = \realpath (__DIR__ . '/_fixtures/service_account.json ' );
71+ $ credentialsPath = \realpath (__DIR__ . '/_fixtures/service_account.json ' );
7272 $ credentials = \json_decode (\file_get_contents ($ credentialsPath ), true );
7373
7474 // Set configuration and retrieve project
7575 $ projectName = 'app ' ;
76- $ this ->app ->config ->set ('firebase.projects. ' . $ projectName. '.credentials.file ' , \realpath (__DIR__ . '/_fixtures/service_account.json ' ));
76+ $ this ->app ->config ->set ('firebase.projects. ' . $ projectName . '.credentials.file ' , \realpath (__DIR__ . '/_fixtures/service_account.json ' ));
7777 $ factory = $ this ->factoryForProject ($ projectName );
7878
7979 // Retrieve service account
@@ -90,19 +90,19 @@ public function credentials_can_be_configured(): void
9090 public function projects_can_have_different_credentials (): void
9191 {
9292 // Reference credentials
93- $ credentialsPath = \realpath (__DIR__ . '/_fixtures/service_account.json ' );
93+ $ credentialsPath = \realpath (__DIR__ . '/_fixtures/service_account.json ' );
9494 $ credentials = \json_decode (\file_get_contents ($ credentialsPath ), true );
9595
96- $ secondCredentialsPath = \realpath (__DIR__ . '/_fixtures/another_service_account.json ' );
96+ $ secondCredentialsPath = \realpath (__DIR__ . '/_fixtures/another_service_account.json ' );
9797 $ secondCredentials = \json_decode (\file_get_contents ($ secondCredentialsPath ), true );
9898
9999 // Project names to use
100100 $ projectName = 'app ' ;
101101 $ secondProjectName = 'another-app ' ;
102102
103103 // Set service accounts explicitly
104- $ this ->app ->config ->set ('firebase.projects. ' . $ projectName. '.credentials.file ' , \realpath (__DIR__ . '/_fixtures/service_account.json ' ));
105- $ this ->app ->config ->set ('firebase.projects. ' . $ secondProjectName. '.credentials.file ' , \realpath (__DIR__ . '/_fixtures/another_service_account.json ' ));
104+ $ this ->app ->config ->set ('firebase.projects. ' . $ projectName . '.credentials.file ' , \realpath (__DIR__ . '/_fixtures/service_account.json ' ));
105+ $ this ->app ->config ->set ('firebase.projects. ' . $ secondProjectName . '.credentials.file ' , \realpath (__DIR__ . '/_fixtures/another_service_account.json ' ));
106106
107107 // Retrieve factories and service accounts
108108 $ factory = $ this ->factoryForProject ($ projectName );
@@ -142,7 +142,7 @@ public function credential_auto_discovery_can_be_disabled_for_default_project():
142142 {
143143 $ projectName = $ this ->app ->config ->get ('firebase.default ' );
144144
145- $ this ->app ->config ->set ('firebase.projects. ' . $ projectName. '.credentials.auto_discovery ' , false );
145+ $ this ->app ->config ->set ('firebase.projects. ' . $ projectName . '.credentials.auto_discovery ' , false );
146146
147147 $ factory = $ this ->factoryForProject ($ projectName );
148148
@@ -158,7 +158,7 @@ public function credential_auto_discovery_is_not_enabled_by_default_for_other_pr
158158 {
159159 $ projectName = 'another-app ' ;
160160
161- $ this ->app ->config ->set ('firebase.projects. ' . $ projectName. '.credentials ' , []);
161+ $ this ->app ->config ->set ('firebase.projects. ' . $ projectName . '.credentials ' , []);
162162
163163 $ factory = $ this ->factoryForProject ($ projectName ); // factory for default project with default settings
164164
@@ -174,7 +174,7 @@ public function credential_auto_discovery_can_be_enabled_for_other_project(): vo
174174 {
175175 $ projectName = 'another-app ' ;
176176
177- $ this ->app ->config ->set ('firebase.projects. ' . $ projectName. '.credentials.auto_discovery ' , true );
177+ $ this ->app ->config ->set ('firebase.projects. ' . $ projectName . '.credentials.auto_discovery ' , true );
178178
179179 $ factory = $ this ->factoryForProject ($ projectName );
180180
@@ -189,8 +189,8 @@ public function credential_auto_discovery_can_be_enabled_for_other_project(): vo
189189 public function the_realtime_database_url_can_be_configured (): void
190190 {
191191 $ projectName = $ this ->app ->config ->get ('firebase.default ' );
192- $ this ->app ->config ->set ('firebase.projects. ' . $ projectName. '.database.url ' , $ url = 'https://domain.tld ' );
193- $ this ->app ->config ->set ('firebase.projects. ' . $ projectName. '.database.auth_variable_override ' , ['uid ' => 'some-uid ' ]);
192+ $ this ->app ->config ->set ('firebase.projects. ' . $ projectName . '.database.url ' , $ url = 'https://domain.tld ' );
193+ $ this ->app ->config ->set ('firebase.projects. ' . $ projectName . '.database.auth_variable_override ' , ['uid ' => 'some-uid ' ]);
194194
195195 $ database = $ this ->app ->make (Firebase \Contract \Database::class);
196196
@@ -205,7 +205,7 @@ public function the_realtime_database_url_can_be_configured(): void
205205 public function the_dynamic_links_default_domain_can_be_configured (): void
206206 {
207207 $ projectName = $ this ->app ->config ->get ('firebase.default ' );
208- $ this ->app ->config ->set ('firebase.projects. ' . $ projectName. '.dynamic_links.default_domain ' , $ domain = 'https://domain.tld ' );
208+ $ this ->app ->config ->set ('firebase.projects. ' . $ projectName . '.dynamic_links.default_domain ' , $ domain = 'https://domain.tld ' );
209209
210210 $ dynamicLinks = $ this ->app ->make (Firebase \Contract \DynamicLinks::class);
211211
@@ -222,7 +222,7 @@ public function the_dynamic_links_default_domain_can_be_configured(): void
222222 public function the_storage_default_bucket_can_be_configured (): void
223223 {
224224 $ projectName = $ this ->app ->config ->get ('firebase.default ' );
225- $ this ->app ->config ->set ('firebase.projects. ' . $ projectName. '.storage.default_bucket ' , $ name = 'my-bucket ' );
225+ $ this ->app ->config ->set ('firebase.projects. ' . $ projectName . '.storage.default_bucket ' , $ name = 'my-bucket ' );
226226
227227 $ storage = $ this ->app ->make (Firebase \Contract \Storage::class);
228228
@@ -237,7 +237,7 @@ public function the_storage_default_bucket_can_be_configured(): void
237237 public function logging_can_be_configured (): void
238238 {
239239 $ projectName = $ this ->app ->config ->get ('firebase.default ' );
240- $ this ->app ->config ->set ('firebase.projects. ' . $ projectName. '.logging.http_log_channel ' , 'stack ' );
240+ $ this ->app ->config ->set ('firebase.projects. ' . $ projectName . '.logging.http_log_channel ' , 'stack ' );
241241
242242 $ factory = $ this ->factoryForProject ($ projectName );
243243
@@ -252,7 +252,7 @@ public function logging_can_be_configured(): void
252252 public function debug_logging_can_be_configured (): void
253253 {
254254 $ projectName = $ this ->app ->config ->get ('firebase.default ' );
255- $ this ->app ->config ->set ('firebase.projects. ' . $ projectName. '.logging.http_debug_log_channel ' , 'stack ' );
255+ $ this ->app ->config ->set ('firebase.projects. ' . $ projectName . '.logging.http_debug_log_channel ' , 'stack ' );
256256
257257 $ factory = $ this ->factoryForProject ($ projectName );
258258
@@ -267,8 +267,8 @@ public function debug_logging_can_be_configured(): void
267267 public function http_client_options_can_be_configured (): void
268268 {
269269 $ projectName = $ this ->app ->config ->get ('firebase.default ' );
270- $ this ->app ->config ->set ('firebase.projects. ' . $ projectName. '.http_client_options.proxy ' , 'proxy.domain.tld ' );
271- $ this ->app ->config ->set ('firebase.projects. ' . $ projectName. '.http_client_options.timeout ' , 1.23 );
270+ $ this ->app ->config ->set ('firebase.projects. ' . $ projectName . '.http_client_options.proxy ' , 'proxy.domain.tld ' );
271+ $ this ->app ->config ->set ('firebase.projects. ' . $ projectName . '.http_client_options.timeout ' , 1.23 );
272272
273273 $ factory = $ this ->factoryForProject ($ projectName );
274274
0 commit comments