/** * Test for method hasToBeTerminated. Expects errors and execute termination. */ public function testHasToBeTerminatedTrue() { $this->model->addError('systemException', 'not-critical', 4, 'Some column name', 'Message', 'Description'); $result = $this->model->hasToBeTerminated(); $this->assertTrue($result); }