22
22
class StoreTest extends \PHPUnit \Framework \TestCase
23
23
{
24
24
/**
25
- * Session ID in query param
25
+ * Test ID in query param
26
26
*/
27
- const SESSION_ID_QUERY_PARAM = 'SID ' ;
27
+ private const TEST_ID_QUERY_PARAM = 'TID ' ;
28
28
29
29
/**
30
30
* @var array
@@ -308,11 +308,11 @@ public function testGetCurrentUrl()
308
308
309
309
$ this ->model
310
310
->expects ($ this ->any ())->method ('getUrl ' )
311
- ->willReturn ('http://localhost/index.php? ' . self ::SESSION_ID_QUERY_PARAM . '=12345 ' );
312
- $ this ->request ->setParams ([self ::SESSION_ID_QUERY_PARAM , '12345 ' ]);
313
- $ this ->request ->setQueryValue (self ::SESSION_ID_QUERY_PARAM , '12345 ' );
311
+ ->willReturn ('http://localhost/index.php? ' . self ::TEST_ID_QUERY_PARAM . '=12345 ' );
312
+ $ this ->request ->setParams ([self ::TEST_ID_QUERY_PARAM , '12345 ' ]);
313
+ $ this ->request ->setQueryValue (self ::TEST_ID_QUERY_PARAM , '12345 ' );
314
314
$ this ->assertStringContainsString (
315
- self ::SESSION_ID_QUERY_PARAM . '=12345 ' ,
315
+ self ::TEST_ID_QUERY_PARAM . '=12345 ' ,
316
316
$ this ->model ->getCurrentUrl ()
317
317
);
318
318
@@ -330,11 +330,11 @@ public function testGetCurrentUrl()
330
330
$ url
331
331
);
332
332
$ this ->assertEquals (
333
- $ secondStore ->getBaseUrl () . '?SID =12345&___from_store=default ' ,
333
+ $ secondStore ->getBaseUrl () . '? ' . self :: TEST_ID_QUERY_PARAM . ' =12345&___from_store=default ' ,
334
334
$ secondStore ->getCurrentUrl ()
335
335
);
336
336
$ this ->assertEquals (
337
- $ secondStore ->getBaseUrl () . '?SID =12345 ' ,
337
+ $ secondStore ->getBaseUrl () . '? ' . self :: TEST_ID_QUERY_PARAM . ' =12345 ' ,
338
338
$ secondStore ->getCurrentUrl (false )
339
339
);
340
340
}
0 commit comments