|
@@ -1,6 +1,6 @@
|
1
|
1
|
<?php
|
2
|
|
-use Luticate\Auth\DataAccess\Sp\SpLuGetUserPermissionById;
|
3
|
|
-use Luticate\Auth\DataAccess\Sp\SpLuGetUserPermissionByName;
|
|
2
|
+use Luticate\Auth\DataAccess\Sp\SpLuGetUserEffectivePermissionById;
|
|
3
|
+use Luticate\Auth\DataAccess\Sp\SpLuGetUserEffectivePermissionByName;
|
4
|
4
|
|
5
|
5
|
/**
|
6
|
6
|
* Created by PhpStorm.
|
|
@@ -12,8 +12,8 @@ class LuPermissionTest extends \PHPUnit_Framework_TestCase
|
12
|
12
|
{
|
13
|
13
|
protected function permissionTest($expectedValue, string $permissionName, int $permissionId, int $userId)
|
14
|
14
|
{
|
15
|
|
- $this->assertSame($expectedValue, SpLuGetUserPermissionByName::getPermissionValue($userId, $permissionName));
|
16
|
|
- $this->assertSame($expectedValue, SpLuGetUserPermissionById::getPermissionValue($userId, $permissionId));
|
|
15
|
+ $this->assertSame($expectedValue, SpLuGetUserEffectivePermissionByName::getPermissionValue($userId, $permissionName));
|
|
16
|
+ $this->assertSame($expectedValue, SpLuGetUserEffectivePermissionById::getPermissionValue($userId, $permissionId));
|
17
|
17
|
}
|
18
|
18
|
|
19
|
19
|
public function testPermission0True()
|