Example #1
0
 public function testClearChangelogDisabled()
 {
     $this->stateMock->expects($this->once())->method('getMode')->will($this->returnValue(\Magento\Framework\Mview\View\StateInterface::MODE_DISABLED));
     $this->stateMock->expects($this->never())->method('getVersionId');
     $this->changelogMock->expects($this->never())->method('clear');
     $this->loadView();
     $this->model->clearChangelog();
 }