Skip to content

Commit

Permalink
MAGETWO-52767: [Github] Not possible to disable DEBUG logging #4362
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftedreality committed Jun 14, 2016
1 parent 389a19d commit 3088d9d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class DebugTest extends \PHPUnit_Framework_TestCase
/**
* @var FormatterInterface|\PHPUnit_Framework_MockObject_MockObject
*/
private $formatter;
private $formatterMock;

protected function setUp()
{
Expand All @@ -69,13 +69,13 @@ protected function setUp()
->getMockForAbstractClass();
$this->storeManagerMock = $this->getMockBuilder(StoreManagerInterface::class)
->getMockForAbstractClass();
$this->formatter = $this->getMockBuilder(FormatterInterface::class)
$this->formatterMock = $this->getMockBuilder(FormatterInterface::class)
->getMockForAbstractClass();

$this->storeManagerMock->expects($this->any())
->method('getStore')
->willReturn($this->storeMock);
$this->formatter->expects($this->any())
$this->formatterMock->expects($this->any())
->method('format')
->willReturn(null);

Expand All @@ -85,7 +85,7 @@ protected function setUp()
'scopeConfig' => $this->scopeConfigMock,
'storeManager' => $this->storeManagerMock
]);
$this->model->setFormatter($this->formatter);
$this->model->setFormatter($this->formatterMock);
}

public function testHandle()
Expand Down

0 comments on commit 3088d9d

Please sign in to comment.