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

31 lines
625 B
PHP
Raw Normal View History

2022-03-02 11:59:29 -04:00
<?php
namespace Tests\unit\workflow\engine\classes\PmFunctions;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Support\Facades\DB;
use ProcessMaker\Model\User;
use Tests\TestCase;
/**
* Test the userInfo() function
*/
class UserInfoTest extends TestCase
{
use DatabaseTransactions;
/**
* This tests the "userInfo"
* @test
*/
public function it_get_user_info()
{
// Create User
global $RBAC;
$user = User::factory()->create();
2022-03-02 11:59:29 -04:00
DB::commit();
$result = userInfo($user->USR_UID);
$this->assertNotEmpty($result);
}
}