/** * Test case for getEvent() with Exception * * @expectedException \Zend_Db_Exception * @expectedExceptionMessage Trigger event is not defined */ public function testGetEventWithException() { $tableName = 'TEST_TABLE_NAME_' . mt_rand(100, 999); $this->_object->setTable($tableName)->setTime(\Magento\Framework\DB\Ddl\Trigger::TIME_AFTER); $this->_object->getEvent(); }