Check editor accounts.
A new editor needs a username and a password of at least 12 characters. A persistent login needs an unexpired key and an existing account. Removing an account revokes its persistent logins, and its sessions end.
This commit is contained in:
@@ -68,6 +68,12 @@ class FeedAndImageTest extends PageTestCase {
|
||||
$this->assertSame(200, $this->get('/display?id=3')['status']);
|
||||
}
|
||||
|
||||
public function testARemovedEditorSeesNoHiddenImages(): void {
|
||||
$this->loginAs();
|
||||
$this->setTables(array('xxx' => $this->tables()['xxx']));
|
||||
$this->assertSame(404, $this->get('/display?id=3')['status']);
|
||||
}
|
||||
|
||||
public function testQueuedImagesNeedPermission(): void {
|
||||
$this->assertSame(401, $this->get('/display?id=9&queue=1')['status']);
|
||||
$this->startSession(array('allow_queue_image' => '8'));
|
||||
|
||||
Reference in New Issue
Block a user