code coverage

This commit is contained in:
John Bintz 2009-12-04 07:06:32 -05:00
parent f9ee36f7fd
commit 19c0b51477

View File

@ -68,7 +68,11 @@ class ComicPressBackendUrlTest extends PHPUnit_Framework_TestCase {
function testGenerateFromPost($metadata, $expected_backends) { function testGenerateFromPost($metadata, $expected_backends) {
update_post_meta(1, 'backend_url_image_urls', $metadata); update_post_meta(1, 'backend_url_image_urls', $metadata);
$this->assertEquals($expected_backends, ComicPressBackendURL::generate_from_post((object)array('ID' => 1))); wp_insert_post((object)array('ID' => 1));
foreach (array(1, (object)array('ID' => 1)) as $source) {
$this->assertEquals($expected_backends, ComicPressBackendURL::generate_from_post($source));
}
} }
function providerTestGenerateID() { function providerTestGenerateID() {