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:
tim
2026-09-26 15:27:51 +02:00
parent 5d657d7e45
commit 3df88e0b4c
10 changed files with 217 additions and 16 deletions
+6
View File
@@ -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'));