Try mocking out get_cached_image method

This commit is contained in:
Timothy Warren 2015-11-18 10:41:00 -05:00
parent 254afc990e
commit ed1e888c58
1 changed files with 5 additions and 0 deletions

View File

@ -143,6 +143,11 @@ class TestAnimeModel extends AnimeModel {
class TestMangaModel extends MangaModel {
use MockInjectionTrait;
public function get_cached_image($api_path, $series_slug, $type = "anime")
{
return "/public/images/{$type}/{$series_slug}.jpg";
}
protected function _check_cache($response)
{
$file = __DIR__ . '/test_data/manga_list/manga-transformed.json';