PMCORE-2062-A

This commit is contained in:
Andrea Adamczyk
2021-03-03 09:59:37 -04:00
parent 112f988410
commit 8c930b81b6

View File

@@ -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);
} }