get_page('nicetest'); $this->assert_content("ok"); $this->assert_no_content("\n"); } public function testNiceDebug(): void { // the automatic testing for shimmie2-examples depends on this $page = $this->get_page('nicedebug/foo%2Fbar/1'); $this->assertEquals('{"args":["nicedebug","foo%2Fbar","1"]}', $page->data); } public function testAuthAnon(): void { $this->assertException(PermissionDenied::class, function () { $this->get_page('setup'); }); } public function testAuthUser(): void { $this->log_in_as_user(); $this->assertException(PermissionDenied::class, function () { $this->get_page('setup'); }); } public function testAuthAdmin(): void { $this->log_in_as_admin(); $this->get_page('setup'); $this->assert_title("Shimmie Setup"); $this->assert_text("General"); } public function testAdvanced(): void { $this->log_in_as_admin(); $this->get_page('setup/advanced'); $this->assert_title("Shimmie Setup"); $this->assert_text(ImageConfig::THUMB_QUALITY); } }