PMCORE-3880 PhpUnit: Error: Call to undefined function factory
This commit is contained in:
@@ -25,8 +25,8 @@ class PMFDeleteCaseTest extends TestCase
|
||||
public function it_should_test_this_pmfunction_default_parameters()
|
||||
{
|
||||
$this->expectException(Exception::class);
|
||||
$table = factory(Delegation::class)->states('foreign_keys')->create();
|
||||
factory(Triggers::class)->create([
|
||||
$table = Delegation::factory()->foreign_keys()->create();
|
||||
Triggers::factory()->create([
|
||||
'PRO_UID' => $table->PRO_UID
|
||||
]);
|
||||
// Force commit for propel
|
||||
|
||||
Reference in New Issue
Block a user