30 lines
870 B
PHP
30 lines
870 B
PHP
<?php
|
|
class BulkAddTest extends ShimmieWebTestCase {
|
|
function testBulkAdd() {
|
|
$this->log_in_as_admin();
|
|
|
|
$this->get_page('admin');
|
|
$this->assert_title("Admin Tools");
|
|
$this->set_field('dir', "asdf");
|
|
$this->click("Add");
|
|
$this->assert_text("is not a directory");
|
|
|
|
$this->get_page('admin');
|
|
$this->assert_title("Admin Tools");
|
|
$this->set_field('dir', "contrib/simpletest");
|
|
$this->click("Add");
|
|
|
|
# FIXME: test that the output here makes sense, no "adding foo.php ... ok"
|
|
|
|
$this->get_page("post/list/hash=17fc89f372ed3636e28bd25cc7f3bac1/1");
|
|
$this->assert_title(new PatternExpectation("/^Image \d+: data/"));
|
|
$this->click("Delete");
|
|
|
|
$this->get_page("post/list/hash=feb01bab5698a11dd87416724c7a89e3/1");
|
|
$this->assert_title(new PatternExpectation("/^Image \d+: data/"));
|
|
$this->click("Delete");
|
|
|
|
$this->log_out();
|
|
}
|
|
}
|
|
?>
|