public function testInitStoreAfter()
 {
     $this->_eventManager->expects($this->once())->method('fireEvent')->with('initStoreAfter');
     $this->_object->execute($this->getMock('\\Magento\\Framework\\Event\\Observer'));
 }
示例#2
0
 public function testInitStoreAfter()
 {
     $this->_eventManager->expects($this->once())->method('fireEvent')->with('initStoreAfter');
     $this->_object->initStoreAfter();
 }
 public function testEndTestSuiteDoNothing()
 {
     $this->_eventManager->expects($this->never())->method('fireEvent');
     $this->_adapter->expects($this->never())->method($this->anything());
     $this->_object->endTestSuite();
 }
示例#4
0
 public function testEndTestDoNotFireEvent()
 {
     $this->_eventManager->expects($this->never())->method('fireEvent');
     $this->_object->endTest(new \PHPUnit_Framework_Warning(), 0);
     $this->_object->endTest($this->getMock('PHPUnit_Framework_Test'), 0);
 }