Fix tests

This commit is contained in:
James Brooks
2017-01-04 20:42:14 +00:00
parent 1b5ddc66dc
commit c20a66ed48
5 changed files with 47 additions and 3 deletions
@@ -0,0 +1,40 @@
<?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\User;
use CachetHQ\Cachet\Bus\Events\User\UserAcceptedInviteEvent;
use CachetHQ\Cachet\Models\Invite;
use CachetHQ\Cachet\Models\User;
/**
* This is the user accepted invite event test class.
*
* @author James Brooks <james@alt-three.com>
*/
class UserAcceptedInviteEventTest extends AbstractUserEventTestCase
{
protected function objectHasHandlers()
{
return false;
}
protected function getObjectAndParams()
{
$params = [
'user' => new User(),
'invite' => new Invite(),
];
$object = new UserAcceptedInviteEvent($params['user'], $params['invite']);
return compact('params', 'object');
}
}