Bristol SU Support Package
|
Public Member Functions | |
forLogic (Logic $logic) | |
bind () | |
evaluate (Logic $logic, $userModel=null, $groupModel=null, $roleModel=null) | |
Private Attributes | |
$results = [] | |
A Logic Tester implementation used for manually setting logic group results
Definition at line 14 of file LogicTesterFake.php.
BristolSU\Support\Testing\LogicTester\LogicTesterFake::bind | ( | ) |
Definition at line 38 of file LogicTesterFake.php.
BristolSU\Support\Testing\LogicTester\LogicTesterFake::evaluate | ( | Logic | $logic, |
$userModel = null , |
|||
$groupModel = null , |
|||
$roleModel = null |
|||
) |
See if the given credentials have a predetermined result for the given logic
Logic | $logic | Logic to test |
User | null | $userModel | User to test against |
Group | null | $groupModel | Group to test against |
Role | null | $roleModel | Role to test against |
Implements BristolSU\Support\Logic\Contracts\LogicTester.
Definition at line 53 of file LogicTesterFake.php.
BristolSU\Support\Testing\LogicTester\LogicTesterFake::forLogic | ( | Logic | $logic | ) |
Create a logic tester for a specific logic group
Logic | $logic |
Definition at line 30 of file LogicTesterFake.php.
|
private |
Definition at line 22 of file LogicTesterFake.php.