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)
{
$result = \ProcessMaker\Model\User::where('USERS.USR_STATUS', '<>', 'CLOSED')
->whereNotIn('USERS.USR_UID', function($query) {
$query->select('GROUP_USER.USR_UID')
->from('GROUP_USER');
})
->whereNotIn('USERS.USR_UID', ['00000000000000000000000000000002'])
->get()
->toArray();
->whereNotIn('USERS.USR_UID', ['00000000000000000000000000000002'])
->leftJoin('GROUP_USER', function($query) {
$query->on('GROUP_USER.USR_UID', '=', 'USERS.USR_UID');
})
->get()
->toArray();
$response = $this->getInstanceGroup()->getUsers('AVAILABLE-USERS', $groupUid);
$this->assertCount(count($result), $response);
}