PMCORE-3674
This commit is contained in:
committed by
Paula.Quispe
parent
e79f5ac1cc
commit
8fbcb712e5
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\unit\workflow\engine\classes\PmFunctions;
|
||||
|
||||
use Exception;
|
||||
use Tests\TestCase;
|
||||
|
||||
/**
|
||||
* Test the literalDate() function
|
||||
*
|
||||
* @link https://wiki.processmaker.com/3.1/ProcessMaker_Functions#literalDate.28.29
|
||||
*/
|
||||
class LiteralDateTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* This tests the "literalDate"
|
||||
* @test
|
||||
*/
|
||||
public function it_get_literal_date()
|
||||
{
|
||||
$result = literalDate(date('Y-m-d'), 'en');
|
||||
$this->assertNotEmpty($result);
|
||||
$result = literalDate(date('Y-m-d'), 'es');
|
||||
$this->assertNotEmpty($result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This tests the "literalDate"
|
||||
* @test
|
||||
*/
|
||||
public function it_get_exceptions()
|
||||
{
|
||||
$this->expectException(Exception::class);
|
||||
$result = literalDate('');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user