better blocks testing
This commit is contained in:
parent
0bd01e56e2
commit
ee976ed23b
@ -4,19 +4,27 @@ class BlocksTest extends SCoreWebTestCase {
|
|||||||
$this->log_in_as_admin();
|
$this->log_in_as_admin();
|
||||||
|
|
||||||
$this->get_page("setup");
|
$this->get_page("setup");
|
||||||
$this->set_field("_config_blocks_text", "badgers");
|
$this->set_field("_config_blocks_text", "
|
||||||
|
Title: some text
|
||||||
|
Area: main
|
||||||
|
Priority: 100
|
||||||
|
Pages: *
|
||||||
|
|
||||||
|
waffles
|
||||||
|
");
|
||||||
$this->click("Save Settings");
|
$this->click("Save Settings");
|
||||||
|
|
||||||
$this->get_page("post/list");
|
$this->get_page("post/list");
|
||||||
$this->assert_text("badgers");
|
$this->assert_text("some text");
|
||||||
|
$this->assert_text("waffles");
|
||||||
|
|
||||||
$this->get_page("setup");
|
$this->get_page("setup");
|
||||||
$this->set_field("_config_blocks_text", "");
|
$this->set_field("_config_blocks_text", "");
|
||||||
$this->click("Save Settings");
|
$this->click("Save Settings");
|
||||||
|
|
||||||
$this->get_page("post/list");
|
$this->get_page("post/list");
|
||||||
$this->assert_no_text("Note");
|
$this->assert_no_text("some text");
|
||||||
$this->assert_no_text("badgers");
|
$this->assert_no_text("waffles");
|
||||||
|
|
||||||
$this->log_out();
|
$this->log_out();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user