PMCORE-3985 PHP Unit, solve the issue in the Circle CI

This commit is contained in:
Roly Gutierrez
2022-09-14 12:08:21 -04:00
parent f7112d18e9
commit cc36bbe277
12 changed files with 39 additions and 41 deletions

View File

@@ -114,9 +114,10 @@ class WebEntryTest extends TestCase
$webEntryFilename = 'My_Custom_Form';
//assert true result
$webEntry = factory(WebEntry::class)->create([
$webEntry = WebEntry::factory()->create([
'WE_DATA' => $webEntryFilename . $phpExtension,
'WE_HIDE_ACTIVE_SESSION_WARNING' => '0'
'WE_HIDE_ACTIVE_SESSION_WARNING' => '0',
'WE_AUTHENTICATION' => 'LOGIN_REQUIRED'
]);
$weUid = $webEntry->WE_UID;
@@ -126,9 +127,10 @@ class WebEntryTest extends TestCase
$this->assertEquals($result, true);
//assert false result
$webEntry = factory(WebEntry::class)->create([
$webEntry = WebEntry::factory()->create([
'WE_DATA' => $webEntryFilename . $phpExtension,
'WE_HIDE_ACTIVE_SESSION_WARNING' => '1'
'WE_HIDE_ACTIVE_SESSION_WARNING' => '1',
'WE_AUTHENTICATION' => 'LOGIN_REQUIRED'
]);
$weUid = $webEntry->WE_UID;