PMCORE-3880 PhpUnit: Error: Call to undefined function factory
This commit is contained in:
@@ -23,7 +23,7 @@ class PMFAddCaseNoteTest extends TestCase
|
||||
public function it_add_case_notes()
|
||||
{
|
||||
// Create notes
|
||||
$table = factory(Delegation::class)->states('foreign_keys')->create();
|
||||
$table = Delegation::factory()->foreign_keys()->create();
|
||||
// Force commit for propel
|
||||
DB::commit();
|
||||
$result = PMFAddCaseNote($table->APP_UID, $table->PRO_UID, $table->TAS_UID, $table->USR_UID, 'note');
|
||||
|
||||
Reference in New Issue
Block a user