PMCORE-3674
This commit is contained in:
committed by
Paula.Quispe
parent
e79f5ac1cc
commit
8fbcb712e5
@@ -0,0 +1,30 @@
|
||||
<?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 PMFGetUserEmailAddress() function
|
||||
*/
|
||||
class PMFGetUserEmailAddressTest extends TestCase
|
||||
{
|
||||
use DatabaseTransactions;
|
||||
|
||||
/**
|
||||
* This tests the "PMFGetUserEmailAddress"
|
||||
* @test
|
||||
*/
|
||||
public function it_get_user_mail()
|
||||
{
|
||||
// Create User
|
||||
global $RBAC;
|
||||
$user = factory(User::class)->create();
|
||||
DB::commit();
|
||||
$result = PMFGetUserEmailAddress([$user->USR_UID], null);
|
||||
$this->assertNotEmpty($result);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user