public function testInitStoreAfter()
 {
     $this->_eventManager->expects($this->once())->method('fireEvent')->with('initStoreAfter');
     $this->_object->execute($this->getMock('\\Magento\\Framework\\Event\\Observer'));
 }
Example #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();
 }
Example #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);
 }