40 lines
913 B
PHP
40 lines
913 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\Incident;
|
|
|
|
use CachetHQ\Cachet\Bus\Events\Incident\IncidentWasReportedEvent;
|
|
use CachetHQ\Cachet\Models\Incident;
|
|
|
|
/**
|
|
* This is the incident was reported event test class.
|
|
*
|
|
* @author James Brooks <james@alt-three.com>
|
|
*/
|
|
class IncidentWasReportedEventTest extends AbstractIncidentEventTestCase
|
|
{
|
|
protected function objectHasHandlers()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
protected function getObjectAndParams()
|
|
{
|
|
$params = [
|
|
'incident' => new Incident(),
|
|
'notify' => true,
|
|
];
|
|
$object = new IncidentWasReportedEvent($params['incident']);
|
|
|
|
return compact('params', 'object');
|
|
}
|
|
}
|