File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
app/code/Magento/Translation/Test/Unit/Model/Json Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,9 @@ public function testGetData()
80
80
$ context ->expects ($ this ->once ())
81
81
->method ('getAreaCode ' )
82
82
->willReturn ($ areaCode );
83
+ $ context ->expects ($ this ->once ())
84
+ ->method ('getLocale ' )
85
+ ->willReturn ('en_US ' );
83
86
84
87
$ this ->areaListMock ->expects ($ this ->once ())
85
88
->method ('getArea ' )
@@ -97,6 +100,9 @@ public function testGetData()
97
100
->method ('setContentType ' )
98
101
->with ('json ' );
99
102
103
+ $ this ->translateMock ->expects ($ this ->once ())->method ('setLocale ' )->with ('en_US ' )->willReturnSelf ();
104
+ $ this ->translateMock ->expects ($ this ->once ())->method ('loadData ' )->with ($ areaCode , true );
105
+
100
106
$ this ->model ->process ($ chain );
101
107
}
102
108
}
You can’t perform that action at this time.
0 commit comments