Skip to content

Commit eaf5168

Browse files
committed
add dependencies.
1 parent 53479e9 commit eaf5168

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

app/code/Magento/GoogleGtag/Test/Unit/Block/GaTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ protected function setUp(): void
139139

140140
$escaper->expects($this->any())
141141
->method('escapeHtmlAttr')
142-
->willReturnCallback(function($value) {
142+
->willReturnCallback(function ($value) {
143143
return $value;
144144
});
145145

@@ -195,7 +195,8 @@ public function testOrderTrackingData()
195195
$this->searchCriteriaBuilder->method('create')->willReturn($searchCriteria);
196196
$this->storeMock->expects($this->once())->method('getFrontendName')->willReturn('test');
197197
$this->storeManagerMock->expects($this->once())->method('getStore')->willReturn($this->storeMock);
198-
$this->productMock->expects($this->once())->method('getAttributeText')->with('manufacturer')->willReturn('Brand 1');
198+
$this->productMock->expects($this->once())->method('getAttributeText')
199+
->with('manufacturer')->willReturn('Brand 1');
199200

200201
$expectedResult = [
201202
'orders' => [

app/code/Magento/GoogleGtag/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"require": {
88
"php": "~8.1.0||~8.2.0",
99
"magento/framework": "*",
10+
"magento/module-catalog": "*",
1011
"magento/module-cookie": "*",
1112
"magento/module-sales": "*",
1213
"magento/module-store": "*"

app/code/Magento/GoogleGtag/etc/module.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
99
<module name="Magento_GoogleGtag" >
1010
<sequence>
11+
<module name="Magento_Catalog"/>
1112
<module name="Magento_Store"/>
1213
<module name="Magento_Checkout"/>
1314
</sequence>

dev/tests/unit/phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
<!-- Optional arguments block; omit it if you want to use default values -->
5858
<arguments>
5959
<!-- Path to config file (default is config/allure.config.php) -->
60-
<string>allure/allure.config.php</string>
60+
<string>../../../dev/tests/unit/allure/allure.config.php</string>
6161
</arguments>
6262
</extension>
6363
</extensions>

0 commit comments

Comments
 (0)