@@ -782,7 +782,7 @@ public function testReadWithLastModified(array $locales, array $domains, array $
782
782
foreach ($ domains as $ domain ) {
783
783
$ responses [] = function (string $ method , string $ url , array $ options = []) use ($ responseContents , $ lastModifieds , $ locale , $ domain ): ResponseInterface {
784
784
$ 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 );
786
786
$ this ->assertSame (['filter ' => $ domain , 'status ' => 'translated,blank-translation ' ], $ options ['query ' ]);
787
787
$ this ->assertSame (['Accept: */* ' ], $ options ['headers ' ]);
788
788
@@ -819,7 +819,7 @@ public function testReadWithLastModified(array $locales, array $domains, array $
819
819
foreach ($ domains as $ domain ) {
820
820
$ responses [] = function (string $ method , string $ url , array $ options = []) use ($ responseContents , $ lastModifieds , $ locale , $ domain ): ResponseInterface {
821
821
$ 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 );
823
823
$ this ->assertSame (['filter ' => $ domain , 'status ' => 'translated,blank-translation ' ], $ options ['query ' ]);
824
824
$ this ->assertSame (['If-Modified-Since: ' .$ lastModifieds [$ locale ], 'Accept: */* ' ], $ options ['headers ' ]);
825
825
0 commit comments