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

19 lines
551 B
PHP
Raw Normal View History

<?php
class SiteDescriptionTest extends SCoreWebTestCase {
function testSiteDescription() {
$this->log_in_as_admin();
$this->get_page('setup');
2009-08-19 00:28:48 +00:00
$this->assert_title("Shimmie Setup");
$this->set_field("_config_site_description", "A Shimmie testbed");
2009-09-20 02:50:32 +00:00
$this->set_field("_config_site_keywords", "foo,bar,baz");
2009-07-20 06:31:41 +00:00
$raw = $this->click("Save Settings");
$header = '<meta name="description" content="A Shimmie testbed">';
2009-07-20 06:31:41 +00:00
$this->assertTrue(strpos($raw, $header) > 0);
2009-09-20 02:50:32 +00:00
$this->assertTrue(strpos($raw, "foo") > 0);
$this->log_out();
}
}
?>