PMCORE-2062-A
This commit is contained in:
@@ -99,13 +99,13 @@ class GroupTest extends TestCase
|
|||||||
public function testGetUsersAvailable($groupUid)
|
public function testGetUsersAvailable($groupUid)
|
||||||
{
|
{
|
||||||
$result = \ProcessMaker\Model\User::where('USERS.USR_STATUS', '<>', 'CLOSED')
|
$result = \ProcessMaker\Model\User::where('USERS.USR_STATUS', '<>', 'CLOSED')
|
||||||
->whereNotIn('USERS.USR_UID', function($query) {
|
->whereNotIn('USERS.USR_UID', ['00000000000000000000000000000002'])
|
||||||
$query->select('GROUP_USER.USR_UID')
|
->leftJoin('GROUP_USER', function($query) {
|
||||||
->from('GROUP_USER');
|
$query->on('GROUP_USER.USR_UID', '=', 'USERS.USR_UID');
|
||||||
})
|
})
|
||||||
->whereNotIn('USERS.USR_UID', ['00000000000000000000000000000002'])
|
->get()
|
||||||
->get()
|
->toArray();
|
||||||
->toArray();
|
|
||||||
$response = $this->getInstanceGroup()->getUsers('AVAILABLE-USERS', $groupUid);
|
$response = $this->getInstanceGroup()->getUsers('AVAILABLE-USERS', $groupUid);
|
||||||
$this->assertCount(count($result), $response);
|
$this->assertCount(count($result), $response);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user