Skip to content
Snippets Groups Projects
Commit baebba94 authored by pbarroca's avatar pbarroca
Browse files

ArteVOD: mock mécanique de suppression dans les tests

parent 19d92bb2
Branches
Tags 6.29
No related merge requests found
......@@ -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);
}
}
......
......@@ -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();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment