@@ -782,7 +782,7 @@ public function testReadWithLastModified(array $locales, array $domains, array $
782782 foreach ($ domains as $ domain ) {
783783 $ responses [] = function (string $ method , string $ url , array $ options = []) use ($ responseContents , $ lastModifieds , $ locale , $ domain ): ResponseInterface {
784784 $ this ->assertSame ('GET ' , $ method );
785- $ this ->assertSame ('https://localise.biz/api/export/locale/ ' .$ locale .'.xlf?filter= ' .$ domain .'&status=translated,blank -translation ' , $ url );
785+ $ this ->assertSame ('https://localise.biz/api/export/locale/ ' .$ locale .'.xlf?filter= ' .rawurlencode ( $ domain) .'&status=translated%2Cblank -translation ' , $ url );
786786 $ this ->assertSame (['filter ' => $ domain , 'status ' => 'translated,blank-translation ' ], $ options ['query ' ]);
787787 $ this ->assertSame (['Accept: */* ' ], $ options ['headers ' ]);
788788
@@ -819,7 +819,7 @@ public function testReadWithLastModified(array $locales, array $domains, array $
819819 foreach ($ domains as $ domain ) {
820820 $ responses [] = function (string $ method , string $ url , array $ options = []) use ($ responseContents , $ lastModifieds , $ locale , $ domain ): ResponseInterface {
821821 $ this ->assertSame ('GET ' , $ method );
822- $ this ->assertSame ('https://localise.biz/api/export/locale/ ' .$ locale .'.xlf?filter= ' .$ domain .'&status=translated,blank -translation ' , $ url );
822+ $ this ->assertSame ('https://localise.biz/api/export/locale/ ' .$ locale .'.xlf?filter= ' .rawurlencode ( $ domain) .'&status=translated%2Cblank -translation ' , $ url );
823823 $ this ->assertSame (['filter ' => $ domain , 'status ' => 'translated,blank-translation ' ], $ options ['query ' ]);
824824 $ this ->assertSame (['If-Modified-Since: ' .$ lastModifieds [$ locale ], 'Accept: */* ' ], $ options ['headers ' ]);
825825
0 commit comments