public function testClearChangelogWithGroup() { $group = 'group'; $viewsMock = $this->getViewsMock(); $viewsMock->expects($this->never())->method('getItems'); $viewsMock->expects($this->once())->method('getItemsByColumnValue')->with($group)->will($this->returnValue($this->getViews('clearChangelog'))); $this->model->clearChangelog($group); }
public function testClearChangelog() { $this->viewProcessorMock->expects($this->once())->method('clearChangelog')->with('indexer')->willReturnSelf(); $this->model->clearChangelog(); }