code coverage

This commit is contained in:
John Bintz 2010-01-14 20:49:45 -05:00
parent 7ba5fc8ba9
commit 22b95c91c3
2 changed files with 4 additions and 0 deletions

View File

@ -247,9 +247,11 @@ class ComicPressStoryline {
return $this->_merge_simple_storyline($simple_storyline);
}
// @codeCoverageIgnoreStart
function get_comicpress_dbi() {
return ComicPressDBInterface::get_instance();
}
// @codeCoverageIgnoreEnd
/**
* Get a simple structure.

View File

@ -336,6 +336,8 @@ class ComicPressStorylineTest extends PHPUnit_Framework_TestCase {
$this->assertEquals($expected_result, $css->get_category_simple_structure($parent));
$this->assertEquals($expected_result, wp_cache_get($expected_cache_key, 'comicpress'));
$this->assertEquals($expected_result, $css->get_category_simple_structure($parent));
}
function providerTestGenerateCacheKey() {