diff --git a/tests/application/modules/admin/controllers/HarvestControllerTest.php b/tests/application/modules/admin/controllers/HarvestControllerTest.php index d68ac609329b2ed48825a286ada1c9b89317fadc..a9fcf2db85e2655b5f0918a1a32713400af65c6f 100644 --- a/tests/application/modules/admin/controllers/HarvestControllerTest.php +++ b/tests/application/modules/admin/controllers/HarvestControllerTest.php @@ -87,7 +87,8 @@ abstract class HarvestControllerArteVodWithFilmTestCase extends HarvestControlle $this->_albumWrapper = Storm_Test_ObjectWrapper::onLoaderOfModel('Class_Album') ->whenCalled('findFirstBy')->answers(null) - ->whenCalled('save')->answers(true); + ->whenCalled('save')->answers(true) + ->whenCalled('deleteBy')->answers(null); } @@ -207,9 +208,6 @@ class HarvestControllerArteVodAjaxFirstPageTest extends HarvestControllerArteVod public function responseShouldNotHaveNextPage() { $this->assertFalse($this->_json->has_next); } - - - } diff --git a/tests/library/Class/WebService/ArteVODTest.php b/tests/library/Class/WebService/ArteVODTest.php index c6efe54da872748cd8e7ec79bff144e50d4d75e5..21f339b5f595d734c832c2d2d6aefa890af183f0 100644 --- a/tests/library/Class/WebService/ArteVODTest.php +++ b/tests/library/Class/WebService/ArteVODTest.php @@ -76,7 +76,8 @@ class ArteVODHarverstingTwoFilmsInTwoPages extends ArteVODHarverstingTestCase { $this->_album_wrapper = Storm_Test_ObjectWrapper::onLoaderOfModel('Class_Album') ->whenCalled('findFirstBy')->answers(null) - ->whenCalled('save')->answers(true); + ->whenCalled('save')->answers(true) + ->whenCalled('deleteBy')->answers(null); $service = new Class_WebService_ArteVOD(); $service->harvest();