PMCORE-3880 PhpUnit: Error: Call to undefined function factory
This commit is contained in:
@@ -18,6 +18,9 @@ class AuthSourcesEditTest extends TestCase
|
||||
{
|
||||
parent::setUp();
|
||||
$this->settingUserLogged();
|
||||
if (!defined('SYS_COLLECTION')) {
|
||||
define('SYS_COLLECTION', 'case');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -59,7 +62,7 @@ class AuthSourcesEditTest extends TestCase
|
||||
$fileName = PATH_METHODS . 'authSources/authSources_Edit.php';
|
||||
$_REQUEST['AUTH_SOURCE_PROVIDER'] = 'ldapAdvanced';
|
||||
|
||||
$authenticationSource = factory(RbacAuthenticationSource::class)
|
||||
$authenticationSource = RbacAuthenticationSource::factory()
|
||||
->create();
|
||||
|
||||
$_GET['sUID'] = $authenticationSource->AUTH_SOURCE_UID;
|
||||
|
||||
Reference in New Issue
Block a user