mirror of
https://github.com/filegator/filegator.git
synced 2025-08-08 23:27:39 +02:00
Test enhancement (#18)
Wow! Thank you very much for fixing all this. Cheers!
This commit is contained in:
committed by
Milos Stojanovic
parent
c7d88635b4
commit
ea6933883f
@@ -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']);
|
||||
}
|
||||
|
Reference in New Issue
Block a user