PMCORE-3674

This commit is contained in:
Paula Quispe
2022-03-02 11:59:29 -04:00
committed by Paula.Quispe
parent e79f5ac1cc
commit 8fbcb712e5
49 changed files with 1797 additions and 377 deletions

View File

@@ -0,0 +1,31 @@
<?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 = factory(Groupwf::class)->create();
DB::commit();
$result = PMFGetGroupUsers($group->GRP_UID);
$this->assertEmpty($result);
}
}