PMCORE-3880 PhpUnit: Error: Call to undefined function factory

This commit is contained in:
Roly Gutierrez
2022-07-21 00:04:21 -04:00
parent 99fa155266
commit 01833eb210
295 changed files with 6494 additions and 4762 deletions

View File

@@ -29,7 +29,7 @@ class WebEntryTest extends TestCase
$webEntryFilename = G::generateUniqueID();
// Create a Web Entry
$webEntry = factory(WebEntry::class)->create(['WE_DATA' => $webEntryFilename . $phpExtension]);
$webEntry = WebEntry::factory()->create(['WE_DATA' => $webEntryFilename . $phpExtension]);
// Post file is from a valid Web Entry?
$isWebEntry = BmWebEntry::isWebEntry($webEntry->PRO_UID, $webEntryFilename . $postFileExtension);
@@ -55,7 +55,7 @@ class WebEntryTest extends TestCase
$webEntryFilename = 'My_Custom_Form';
// Create a Web Entry
$webEntry = factory(WebEntry::class)->create(['WE_DATA' => $webEntryFilename . $phpExtension]);
$webEntry = WebEntry::factory()->create(['WE_DATA' => $webEntryFilename . $phpExtension]);
// Post file is from a valid Web Entry?
$isWebEntry = BmWebEntry::isWebEntry($webEntry->PRO_UID, $webEntryFilename . $postFileExtension);