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/ext/twitter_soc/test.php

29 lines
633 B
PHP

<?php
class TwitterSocTest extends SCoreWebTestCase {
function testFeed() {
$this->log_in_as_admin();
$this->get_page("setup");
$this->set_field("_config_twitter_soc_username", "shish2k");
$this->click("Save Settings");
$this->get_page("post/list");
$this->assert_text("Tweets");
/*
$this->assert_text("kittens"); // this is loaded with javascript
*/
$this->get_page("setup");
$this->set_field("_config_twitter_soc_username", "");
$this->click("Save Settings");
$this->get_page("post/list");
$this->assert_no_text("Tweets");
/*
$this->assert_no_text("kittens");
*/
$this->log_out();
}
}
?>