TestFixture
in package
LdapiHelper fixtures
Fixture classes for users and committees will extend from this one. The main goal of this class is to turn arrays into LDAP objects.
Table of Contents
- TYPE_COMMITTEE = 'committee'
- TYPE_FORWARD = 'forward'
- TYPE_USER = 'user'
- The possible types of fixtures
- $base_record : array<string|int, mixed>
- $ldapi_link : TestLdapi
- $records : array<string|int, mixed>
- $type : string|null
- __construct() : mixed
- Constructor
- init() : mixed
- Init
- load() : mixed
- Load this fixture into the LDAP test storage
- getObjects() : array<string|int, LDAPObject>
- Turn records into LDAP entities
Constants
TYPE_COMMITTEE
public
mixed
TYPE_COMMITTEE
= 'committee'
TYPE_FORWARD
public
mixed
TYPE_FORWARD
= 'forward'
TYPE_USER
The possible types of fixtures
public
mixed
TYPE_USER
= 'user'
Properties
$base_record
public
array<string|int, mixed>
$base_record
$ldapi_link
public
TestLdapi
$ldapi_link
Link to test LDAPI
$records
public
array<string|int, mixed>
$records
$type
public
string|null
$type
= null
Methods
__construct()
Constructor
public
__construct() : mixed
Return values
mixed —init()
Init
public
abstract init() : mixed
Let user overload to fill in records (and base_record)
Return values
mixed —load()
Load this fixture into the LDAP test storage
public
load(TestLdapi $ldapi) : mixed
Parameters
- $ldapi : TestLdapi
Return values
mixed —getObjects()
Turn records into LDAP entities
protected
getObjects(TestLdapi $ldapi) : array<string|int, LDAPObject>
Parameters
- $ldapi : TestLdapi
-
LDAPI instance (needed to create objects)