Skip to content
Snippets Groups Projects
Commit b53bc3f9 authored by llaffont's avatar llaffont
Browse files

Suggestion achat: test champs non-requis

parent c9a79f35
Branches
Tags
No related merge requests found
......@@ -208,6 +208,33 @@ class AbonneControllerSuggestionAchatPostWrongDataTest extends AbstractControlle
class AbonneControllerSuggestionAchatDataWithEmptyFieldsNotRequiredTest extends AbstractControllerTestCase {
public function setUp() {
parent::setUp();
Storm_Test_ObjectWrapper::onLoaderOfModel('Class_SuggestionAchat')
->whenCalled('save')
->answers(true);
$this->postDispatch('/opac/abonne/suggestion-achat',
['titre' => 'Millenium',
'auteur' => 'Stieg Larsson',
'description_url' => '',
'isbn' => '',
'commentaire' => ''],
true);
}
/** @test */
public function responseShouldBeARedirect() {
$this->assertRedirect();
}
}
class AbonneControllerSuggestionAchatWithIdTest extends AbstractControllerTestCase {
public function setUp() {
parent::setUp();
......
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