File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
app/code/Magento/GoogleAnalytics Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ public function isCookieRestrictionModeEnabled()
184
184
*
185
185
* @return int
186
186
*/
187
- public function getCurrentWebsite ()
187
+ public function getCurrentWebsiteId ()
188
188
{
189
189
return $ this ->_storeManager ->getWebsite ()->getId ();
190
190
}
Original file line number Diff line number Diff line change @@ -128,13 +128,13 @@ public function testIsCookieRestrictionModeEnabled()
128
128
$ this ->assertFalse ($ this ->gaBlock ->isCookieRestrictionModeEnabled ());
129
129
}
130
130
131
- public function testGetCurrentWebsite ()
131
+ public function testGetCurrentWebsiteId ()
132
132
{
133
133
$ websiteId = 100 ;
134
134
$ websiteMock = $ this ->getMockBuilder (\Magento \Store \Api \Data \WebsiteInterface::class)->getMock ();
135
135
$ websiteMock ->expects ($ this ->once ())->method ('getId ' )->willReturn ($ websiteId );
136
136
$ this ->storeManagerMock ->expects ($ this ->once ())->method ('getWebsite ' )->willReturn ($ websiteMock );
137
- $ this ->assertEquals ($ websiteId , $ this ->gaBlock ->getCurrentWebsite ());
137
+ $ this ->assertEquals ($ websiteId , $ this ->gaBlock ->getCurrentWebsiteId ());
138
138
}
139
139
140
140
public function testOrderTrackingData ()
Original file line number Diff line number Diff line change 14
14
{
15
15
"*": {
16
16
"Magento_GoogleAnalytics/js/google-analytics": {
17
- "isCookieRestrictionModeEnabled": <?php /* @escapeNotVerified */ echo (int )$ block ->isCookieRestrictionModeEnabled (); ?> ,
18
- "currentWebsite": <?php /* @escapeNotVerified */ echo (int )$ block ->getCurrentWebsite (); ?> ,
17
+ "isCookieRestrictionModeEnabled": <?php echo (int )$ block ->isCookieRestrictionModeEnabled (); ?> ,
18
+ "currentWebsite": <?php echo (int )$ block ->getCurrentWebsiteId (); ?> ,
19
19
"cookieName": "<?php /* @escapeNotVerified */ echo \Magento \Cookie \Helper \Cookie::IS_USER_ALLOWED_SAVE_COOKIE ; ?> ",
20
20
"ordersTrackingData": <?php /* @escapeNotVerified */ echo json_encode ($ block ->getOrdersTrackingData ()); ?> ,
21
21
"pageTrackingData": <?php /* @escapeNotVerified */ echo json_encode ($ block ->getPageTrackingData ($ accountId )); ?>
You can’t perform that action at this time.
0 commit comments