Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 public function testClearChangelog()
 {
     $this->viewProcessorMock->expects($this->once())->method('clearChangelog')->with('indexer')->willReturnSelf();
     $this->model->clearChangelog();
 }