2011-03-02 10:50:22 +00:00
|
|
|
<?php
|
|
|
|
class BlocksTest extends SCoreWebTestCase {
|
|
|
|
function testNews() {
|
|
|
|
$this->log_in_as_admin();
|
|
|
|
|
|
|
|
$this->get_page("setup");
|
2012-03-10 14:30:49 +00:00
|
|
|
$this->set_field("_config_blocks_text", "
|
|
|
|
Title: some text
|
|
|
|
Area: main
|
|
|
|
Priority: 100
|
|
|
|
Pages: *
|
|
|
|
|
|
|
|
waffles
|
|
|
|
");
|
2011-03-02 10:50:22 +00:00
|
|
|
$this->click("Save Settings");
|
|
|
|
|
|
|
|
$this->get_page("post/list");
|
2012-03-10 14:30:49 +00:00
|
|
|
$this->assert_text("some text");
|
|
|
|
$this->assert_text("waffles");
|
2011-03-02 10:50:22 +00:00
|
|
|
|
|
|
|
$this->get_page("setup");
|
|
|
|
$this->set_field("_config_blocks_text", "");
|
|
|
|
$this->click("Save Settings");
|
|
|
|
|
|
|
|
$this->get_page("post/list");
|
2012-03-10 14:30:49 +00:00
|
|
|
$this->assert_no_text("some text");
|
|
|
|
$this->assert_no_text("waffles");
|
2011-03-02 10:50:22 +00:00
|
|
|
|
|
|
|
$this->log_out();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|