PMCORE-3880 PhpUnit: Error: Call to undefined function factory
This commit is contained in:
@@ -133,7 +133,7 @@ class EmailServerAjaxTest extends TestCase
|
||||
{
|
||||
$faker = Factory::create();
|
||||
|
||||
$emailServer = factory(EmailServerModel::class)->create([
|
||||
$emailServer = EmailServerModel::factory()->create([
|
||||
'MESS_ENGINE' => 'PHPMAILER',
|
||||
]);
|
||||
|
||||
@@ -169,7 +169,7 @@ class EmailServerAjaxTest extends TestCase
|
||||
*/
|
||||
public function it_should_verify_the_option_del()
|
||||
{
|
||||
$emailServer = factory(EmailServerModel::class)->create([
|
||||
$emailServer = EmailServerModel::factory()->create([
|
||||
'MESS_ENGINE' => 'PHPMAILER',
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user