Test enhancement (#18)

Wow! Thank you very much for fixing all this.

Cheers!
This commit is contained in:
Chun-Sheng, Li
2019-10-22 20:06:37 +08:00
committed by Milos Stojanovic
parent c7d88635b4
commit ea6933883f
18 changed files with 134 additions and 124 deletions

View File

@@ -8,8 +8,11 @@
* For the full copyright and license information, please view the LICENSE file
*/
namespace Tests\Unit;
use Filegator\Services\Auth\User;
use Tests\TestCase;
use Exception;
/**
* @internal
@@ -68,7 +71,7 @@ class UserTest extends TestCase
{
$user = new User();
$this->expectException(\Exception::class);
$this->expectException(Exception::class);
$user->setRole('nonexistent');
}
@@ -77,7 +80,7 @@ class UserTest extends TestCase
{
$user = new User();
$this->expectException(\Exception::class);
$this->expectException(Exception::class);
$user->setPermissions(['read', 'write', 'nonexistent']);
}