mirror of
https://github.com/wilr/silverstripe-googlesitemaps.git
synced 2024-10-22 11:05:48 +02:00
21 lines
507 B
PHP
21 lines
507 B
PHP
<?php
|
|
|
|
/**
|
|
* Unit test for GoogleSitemap
|
|
*
|
|
* @author Roland Lehmann <rlehmann@pixeltricks.de>
|
|
* @since 11.06.2011
|
|
*/
|
|
class GoogleSitemapTest extends SapphireTest {
|
|
|
|
public function testItems() {
|
|
//Publish a page and check if it returns
|
|
$obj = $this->objFromFixture("Page", "Page1");
|
|
$page = DataObject::get_by_id("Page", $obj->ID);
|
|
#$page->publish();
|
|
#$sitemap = new GoogleSitemap();
|
|
#$this->assertEquals(1, $sitemap->Items()->Count());
|
|
}
|
|
}
|
|
|