This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/ext/blotter/test.php
2024-01-15 14:31:51 +00:00

36 lines
944 B
PHP

<?php
declare(strict_types=1);
namespace Shimmie2;
class BlotterTest extends ShimmiePHPUnitTestCase
{
public function testDenial(): void
{
$this->get_page("blotter/editor");
$this->assert_response(403);
$this->get_page("blotter/add");
$this->assert_response(403);
$this->get_page("blotter/remove");
$this->assert_response(403);
}
public function testAddViewRemove(): void
{
$this->log_in_as_admin();
$page = $this->get_page("blotter/editor");
$this->assertEquals(200, $page->code);
//$this->set_field("entry_text", "blotter testing");
//$this->click("Add");
//$this->assert_text("blotter testing");
$this->get_page("blotter");
//$this->assert_text("blotter testing");
$this->get_page("blotter/editor");
//$this->click("Remove");
//$this->assert_no_text("blotter testing");
}
}