Пример #1
0
 protected function _setAdditionalExpectations()
 {
     $this->_dataHelper->expects($this->any())->method('getDisabledCacheTypes')->will($this->returnValue($this->_cacheTypeList));
     $this->_cacheStateMock->expects($this->at(0))->method('isEnabled')->with('type1')->will($this->returnValue(true));
     $this->_cacheStateMock->expects($this->at(1))->method('setEnabled')->with('type1', false)->will($this->returnSelf());
     $this->_cacheStateMock->expects($this->at(2))->method('isEnabled')->with('type2')->will($this->returnValue(true));
     $this->_cacheStateMock->expects($this->at(3))->method('setEnabled')->with('type2', false)->will($this->returnSelf());
 }