From ed1e888c586eb7ca06d0da097011df3f060bcdb8 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Wed, 18 Nov 2015 10:41:00 -0500 Subject: [PATCH] Try mocking out get_cached_image method --- tests/mocks.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/mocks.php b/tests/mocks.php index 0f9b11b3..7ffe317b 100644 --- a/tests/mocks.php +++ b/tests/mocks.php @@ -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';