Files
cachet-docker/tests/Bus/Events/Metric/MetricPointWasUpdatedEventTest.php
2017-02-04 16:54:27 +00:00

38 lines
946 B
PHP

<?php
/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace CachetHQ\Tests\Cachet\Bus\Events\Metric;
use CachetHQ\Cachet\Bus\Events\Metric\MetricPointWasUpdatedEvent;
use CachetHQ\Cachet\Models\MetricPoint;
use CachetHQ\Cachet\Models\User;
/**
* This is the metric point was updated event test class.
*
* @author James Brooks <james@alt-three.com>
*/
class MetricPointWasUpdatedEventTest extends AbstractMetricEventTestCase
{
protected function objectHasHandlers()
{
return false;
}
protected function getObjectAndParams()
{
$params = ['user' => new User(), 'metricPoint' => new MetricPoint()];
$object = new MetricPointWasUpdatedEvent($params['user'], $params['metricPoint']);
return compact('params', 'object');
}
}