more blotter testing

This commit is contained in:
Shish 2010-02-18 15:58:23 +00:00
parent 75f7b7ad6a
commit b72d5254d0

View File

@ -1,20 +1,27 @@
<?php
class BlotterTest extends SCoreWebTestCase {
function testView() {
function testLogin() {
$this->log_in_as_admin();
$this->assert_text("Blotter Editor");
$this->click("Blotter Editor");
$this->log_out();
}
function testAdd() {
function testAddViewRemove() {
$this->log_in_as_admin();
$this->get_page("blotter/editor");
$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->clock("Remove");
$this->assert_no_text("blotter testing");
$this->log_out();
}
}