mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-02-23 11:16:05 +01:00
42 lines
1016 B
PHP
42 lines
1016 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\IncidentWasCreatedEvent;
|
|
use CachetHQ\Cachet\Models\Incident;
|
|
use CachetHQ\Cachet\Models\User;
|
|
|
|
/**
|
|
* This is the incident was created event test class.
|
|
*
|
|
* @author James Brooks <james@alt-three.com>
|
|
*/
|
|
class IncidentWasCreatedEventTest extends AbstractIncidentEventTestCase
|
|
{
|
|
protected function objectHasHandlers()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
protected function getObjectAndParams()
|
|
{
|
|
$params = [
|
|
'user' => new User(),
|
|
'incident' => new Incident(),
|
|
'notify' => true,
|
|
];
|
|
$object = new IncidentWasCreatedEvent($params['user'], $params['incident'], $params['notify']);
|
|
|
|
return compact('params', 'object');
|
|
}
|
|
}
|