* @author Graham Campbell */ class UpdateMetricPointCommandTest extends AbstractTestCase { use CommandTrait; protected function getObjectAndParams() { $params = [ 'point' => new MetricPoint(), 'metric' => new Metric(), 'value' => 1, 'created_at' => '2012-12-30 12:00:00', ]; $object = new UpdateMetricPointCommand( $params['point'], $params['metric'], $params['value'], $params['created_at'] ); return compact('params', 'object'); } protected function objectHasRules() { return true; } protected function getHandlerClass() { return UpdateMetricPointCommandHandler::class; } }