@@ -45,7 +45,7 @@ public function testReadWithLastModified(array $locales, array $domains, array $
45
45
foreach ($ domains as $ domain ) {
46
46
$ responses [] = function (string $ method , string $ url , array $ options = []) use ($ responseContents , $ lastModifieds , $ locale , $ domain ): ResponseInterface {
47
47
$ this ->assertSame ('GET ' , $ method );
48
- $ this ->assertSame ('https://localise.biz/api/export/locale/ ' .$ locale .'.xlf?filter= ' .$ domain .'&status=translated,blank -translation ' , $ url );
48
+ $ this ->assertSame ('https://localise.biz/api/export/locale/ ' .$ locale .'.xlf?filter= ' .rawurlencode ( $ domain) .'&status=translated%2Cblank -translation ' , $ url );
49
49
$ this ->assertSame (['filter ' => $ domain , 'status ' => 'translated,blank-translation ' ], $ options ['query ' ]);
50
50
$ this ->assertSame (['Accept: */* ' ], $ options ['headers ' ]);
51
51
@@ -84,7 +84,7 @@ public function testReadWithLastModified(array $locales, array $domains, array $
84
84
foreach ($ domains as $ domain ) {
85
85
$ responses [] = function (string $ method , string $ url , array $ options = []) use ($ responseContents , $ lastModifieds , $ locale , $ domain ): ResponseInterface {
86
86
$ this ->assertSame ('GET ' , $ method );
87
- $ this ->assertSame ('https://localise.biz/api/export/locale/ ' .$ locale .'.xlf?filter= ' .$ domain .'&status=translated,blank -translation ' , $ url );
87
+ $ this ->assertSame ('https://localise.biz/api/export/locale/ ' .$ locale .'.xlf?filter= ' .rawurlencode ( $ domain) .'&status=translated%2Cblank -translation ' , $ url );
88
88
$ this ->assertSame (['filter ' => $ domain , 'status ' => 'translated,blank-translation ' ], $ options ['query ' ]);
89
89
$ this ->assertNotContains ('If-Modified-Since: ' .$ lastModifieds [$ locale ], $ options ['headers ' ]);
90
90
$ this ->assertSame (['Accept: */* ' ], $ options ['headers ' ]);
0 commit comments