Added missing event tests

This commit is contained in:
James Brooks
2016-07-26 10:22:04 +01:00
committed by Graham Campbell
parent 4031c42958
commit a2f8f4540e
9 changed files with 324 additions and 0 deletions
@@ -0,0 +1,36 @@
<?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\UserWasInvitedEvent;
use CachetHQ\Cachet\Models\User;
/**
* This is the user was invited event test class.
*
* @author James Brooks <james@alt-three.com>
*/
class UserWasInvitedEventTest extends AbstractUserEventTestCase
{
protected function objectHasHandlers()
{
return false;
}
protected function getObjectAndParams()
{
$params = ['user' => new User()];
$object = new UserWasInvitedEvent($params['user']);
return compact('params', 'object');
}
}