* @author Graham Campbell */ class UpdateIncidentCommandTest extends AbstractTestCase { use CommandTrait; protected function getObjectAndParams() { $params = [ 'incident' => new Incident(), 'name' => 'Test', 'status' => 1, 'message' => 'Foo bar baz', 'visible' => 1, 'component_id' => 1, 'component_status' => 1, 'notify' => false, 'stickied' => false, 'incident_date' => null, 'template' => null, 'template_vars' => null, ]; $object = new UpdateIncidentCommand( $params['incident'], $params['name'], $params['status'], $params['message'], $params['visible'], $params['component_id'], $params['component_status'], $params['notify'], $params['stickied'], $params['incident_date'], $params['template'], $params['template_vars'] ); return compact('params', 'object'); } protected function objectHasRules() { return true; } protected function getHandlerClass() { return UpdateIncidentCommandHandler::class; } }