@@ -372,25 +372,25 @@ public function testGetAccessTokenServiceNotAllowed() {
372372 }
373373
374374 public function testGetApplicationId () {
375- putenv ("APPLICATION_ID= simple-app-id " );
375+ putenv ("GAE_APPLICATION=part~ simple-app-id " );
376376 $ this ->assertEquals ("simple-app-id " ,
377377 AppIdentityService::getApplicationId ());
378378
379- putenv ("APPLICATION_ID= domain.com:domain-app-id " );
379+ putenv ("GAE_APPLICATION=part~ domain.com:domain-app-id " );
380380 $ this ->assertEquals ("domain.com:domain-app-id " ,
381381 AppIdentityService::getApplicationId ());
382382
383- putenv ("APPLICATION_ID =part~partition-app-id " );
383+ putenv ("GAE_APPLICATION =part~partition-app-id " );
384384 $ this ->assertEquals ("partition-app-id " ,
385385 AppIdentityService::getApplicationId ());
386386
387- putenv ("APPLICATION_ID =part~domain.com:display " );
387+ putenv ("GAE_APPLICATION =part~domain.com:display " );
388388 $ this ->assertEquals ("domain.com:display " ,
389389 AppIdentityService::getApplicationId ());
390390 }
391391
392392 public function testGetDefaultVersionHostname () {
393- putenv ("DEFAULT_VERSION_HOSTNAME =my-app.appspot.com " );
393+ putenv ("HTTP_X_APPENGINE_DEFAULT_VERSION_HOSTNAME =my-app.appspot.com " );
394394 $ this ->assertEquals ("my-app.appspot.com " ,
395395 AppIdentityService::getDefaultVersionHostname ());
396396 }
0 commit comments