예제 #1
0
 public function testProcessResponseBody()
 {
     $isJson = true;
     $this->objectManagerMock->expects($this->once())->method('get')->with('Magento\\Framework\\Translate\\Inline')->will($this->returnValue($this->translateMock));
     $this->objectManagerMock->expects($this->never())->method('create');
     $this->translateMock->expects($this->once())->method('processResponseBody')->with('', $isJson)->will($this->returnSelf());
     $model = new Proxy($this->objectManagerMock, 'Magento\\Framework\\Translate\\Inline', true);
     $body = '';
     $this->assertEquals($this->translateMock, $model->processResponseBody($body, $isJson));
 }