add test batches
This commit is contained in:
@@ -10,7 +10,7 @@ class ApiLoginSecurityServiceTest extends TestCase
|
||||
{
|
||||
public function test_roles_object_map_preserves_role_names(): void
|
||||
{
|
||||
$service = new ApiLoginSecurityService;
|
||||
$service = new ApiLoginSecurityService();
|
||||
$map = $service->rolesToObjectMap(['Teacher', 'Admin']);
|
||||
|
||||
$this->assertTrue($map->Teacher);
|
||||
@@ -24,7 +24,7 @@ class ApiLoginSecurityServiceTest extends TestCase
|
||||
|
||||
public function test_build_login_response_includes_teacher_class_context(): void
|
||||
{
|
||||
$service = new ApiLoginSecurityService;
|
||||
$service = new ApiLoginSecurityService();
|
||||
|
||||
$user = $this->getMockBuilder(User::class)
|
||||
->onlyMethods(['roleNames', 'teacherSessionContext'])
|
||||
@@ -57,7 +57,7 @@ class ApiLoginSecurityServiceTest extends TestCase
|
||||
|
||||
public function test_build_login_response_includes_teacher_assistant_class_context(): void
|
||||
{
|
||||
$service = new ApiLoginSecurityService;
|
||||
$service = new ApiLoginSecurityService();
|
||||
|
||||
$user = $this->getMockBuilder(User::class)
|
||||
->onlyMethods(['roleNames', 'teacherSessionContext'])
|
||||
|
||||
Reference in New Issue
Block a user