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

@@ -25,7 +25,7 @@ class PMFUnpauseCaseTest extends TestCase
public function it_should_test_this_pmfunction_default_parameters()
{
$this->expectException(Exception::class);
$table = factory(Delegation::class)->states('foreign_keys')->create();
$table = Delegation::factory()->foreign_keys()->create();
// Force commit for propel
DB::commit();
$result = PMFUnpauseCase($table->APP_UID, $table->DEL_INDEX, $table->USR_UID);