Added missing event tests

This commit is contained in:
James Brooks
2016-08-04 09:02:42 +01:00
parent e412c988e6
commit 1285d19cd4
12 changed files with 423 additions and 0 deletions

View File

@@ -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\UserDisabledTwoAuthEvent;
use CachetHQ\Cachet\Models\User;
/**
* This is the user disabled two auth event test class.
*
* @author James Brooks <james@alt-three.com>
*/
class UserDisabledTwoAuthEventTest extends AbstractUserEventTestCase
{
protected function objectHasHandlers()
{
return false;
}
protected function getObjectAndParams()
{
$params = ['user' => new User()];
$object = new UserDisabledTwoAuthEvent($params['user']);
return compact('params', 'object');
}
}