|
|
|
@ -307,9 +307,9 @@ abstract class ManagerTestCase extends TestCase
|
|
|
|
|
|
|
|
|
|
$this->auth = $this->createManager(); |
|
|
|
|
|
|
|
|
|
$this->assertEquals([], $this->auth->getUserIDsByRole('nonexisting')); |
|
|
|
|
$this->assertEquals(['reader A', '123'], $this->auth->getUserIDsByRole('reader'), '', 0.0, 10, true); |
|
|
|
|
$this->assertEquals(['author B'], $this->auth->getUserIDsByRole('author')); |
|
|
|
|
$this->assertEquals(['admin C'], $this->auth->getUserIDsByRole('admin')); |
|
|
|
|
$this->assertEquals([], $this->auth->getUserIdsByRole('nonexisting')); |
|
|
|
|
$this->assertEquals(['reader A', '123'], $this->auth->getUserIdsByRole('reader'), '', 0.0, 10, true); |
|
|
|
|
$this->assertEquals(['author B'], $this->auth->getUserIdsByRole('author')); |
|
|
|
|
$this->assertEquals(['admin C'], $this->auth->getUserIdsByRole('admin')); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|