File tree 1 file changed +6
-6
lines changed
dev/tests/integration/testsuite/Magento/Framework 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -99,22 +99,22 @@ public function testGetUnsecureUrlInSecureArea()
99
99
100
100
$ model = Bootstrap::getObjectManager ()->create (\Magento \Framework \Url::class, ['request ' => $ request ]);
101
101
102
- $ secureUrl = $ model ->getUrl ('some/index/controller ' );
103
- $ this ->assertStringStartsWith (
102
+ $ secureUrl = $ model ->getUrl ('some/index/controller ' , [ ' _nosid ' => 1 ] );
103
+ $ this ->assertEquals (
104
104
'https://sample.com/index.php/some/index/controller/ ' ,
105
105
$ secureUrl ,
106
106
'Default URL in secure area is incorrect '
107
107
);
108
108
109
- $ secureUrl = $ model ->getUrl ('some/index/controller ' , ['_secure ' => true ]);
110
- $ this ->assertStringStartsWith (
109
+ $ secureUrl = $ model ->getUrl ('some/index/controller ' , ['_secure ' => true , ' _nosid ' => 1 ]);
110
+ $ this ->assertEquals (
111
111
'https://sample.com/index.php/some/index/controller/ ' ,
112
112
$ secureUrl ,
113
113
'Secure URL in secure area is incorrect '
114
114
);
115
115
116
- $ unsecureUrl = $ model ->getUrl ('some/index/controller ' , ['_secure ' => false ]);
117
- $ this ->assertStringStartsWith (
116
+ $ unsecureUrl = $ model ->getUrl ('some/index/controller ' , ['_secure ' => false , ' _nosid ' => 1 ]);
117
+ $ this ->assertEquals (
118
118
'http://sample.com/index.php/some/index/controller/ ' ,
119
119
$ unsecureUrl ,
120
120
'Unsecure URL in secure area is incorrect '
You can’t perform that action at this time.
0 commit comments