32 lines
743 B
PHP
32 lines
743 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\Schedule;
|
|
|
|
use CachetHQ\Cachet\Bus\Events\Schedule\ScheduleWasCreatedEvent;
|
|
use CachetHQ\Cachet\Models\Schedule;
|
|
|
|
class ScheduleWasCreatedEventTest extends AbstractScheduleEventTestCase
|
|
{
|
|
protected function objectHasHandlers()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
protected function getObjectAndParams()
|
|
{
|
|
$params = ['schedule' => new Schedule()];
|
|
$object = new ScheduleWasCreatedEvent($params['schedule']);
|
|
|
|
return compact('params', 'object');
|
|
}
|
|
}
|