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/contrib/bulk_add/test.php

25 lines
691 B
PHP
Raw Normal View History

2009-07-19 03:48:25 +00:00
<?php
class BulkAddTest extends ShimmieWebTestCase {
function testBulkAdd() {
$this->log_in_as_admin();
$this->get_page('admin');
$this->assertTitle("Admin Tools");
$this->setField('dir', "contrib/simpletest");
$this->click("Add");
2009-07-19 16:39:07 +00:00
2009-07-20 05:51:36 +00:00
# FIXME: test that the output here makes sense, no "adding foo.php ... ok"
2009-07-19 16:39:07 +00:00
$this->get_page("post/list/hash=17fc89f372ed3636e28bd25cc7f3bac1/1");
$this->assertTitle(new PatternExpectation("/^Image \d+: data/"));
$this->click("Delete");
$this->get_page("post/list/hash=feb01bab5698a11dd87416724c7a89e3/1");
$this->assertTitle(new PatternExpectation("/^Image \d+: data/"));
$this->click("Delete");
2009-07-19 03:48:25 +00:00
$this->log_out();
}
}
?>