File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
app/code/Meta/Conversion/Test/Unit/Observer Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 24
24
use Magento \Framework \App \RequestInterface ;
25
25
use Magento \Framework \Event \Observer ;
26
26
use PHPUnit \Framework \MockObject \MockObject ;
27
+ use Magento \Framework \Escaper ;
27
28
28
29
class AddToCartTest extends CommonTest
29
30
{
@@ -47,6 +48,11 @@ class AddToCartTest extends CommonTest
47
48
*/
48
49
protected $ aamFieldsExtractorHelper ;
49
50
51
+ /**
52
+ * @var Escaper
53
+ */
54
+ private $ escaper ;
55
+
50
56
/**
51
57
* Used to set the values before running a test
52
58
*
@@ -65,11 +71,14 @@ public function setUp(): void
65
71
$ this ->aamFieldsExtractorHelper ,
66
72
$ this ->systemConfig
67
73
);
74
+ $ this ->escaper = $ this ->createMock (Escaper::class);
75
+
68
76
$ this ->addToCartObserver = new AddToCart (
69
77
$ this ->fbeHelper ,
70
78
$ this ->magentoDataHelper ,
71
79
$ this ->serverSideHelper ,
72
- $ this ->request
80
+ $ this ->request ,
81
+ $ this ->escaper
73
82
);
74
83
}
75
84
You can’t perform that action at this time.
0 commit comments