Files
luos/tests/unit/workflow/engine/classes/PmFunctions/PMFGetGroupUsersTest.php

32 lines
744 B
PHP

<?php
namespace Tests\unit\workflow\engine\classes\PmFunctions;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Support\Facades\DB;
use ProcessMaker\Model\Groupwf;
use Tests\TestCase;
/**
* Test the PMFGetGroupUsers() function
*
* @link https://wiki.processmaker.com/3.1/ProcessMaker_Functions#PMFGetGroupUsers.28.29
*/
class PMFGetGroupUsersTest extends TestCase
{
use DatabaseTransactions;
/**
* This tests if the "PMFGetGroupUsers"
* @test
*/
public function it_return_list_of_groups()
{
// Create group
$group = Groupwf::factory()->create();
DB::commit();
$result = PMFGetGroupUsers($group->GRP_UID);
$this->assertEmpty($result);
}
}