Skip to content
Snippets Groups Projects
Commit 3ddfb216 authored by Sebastien ANDRE's avatar Sebastien ANDRE
Browse files

Fix tests for Koha User modifications

parent 236b4cdf
Branches
Tags
No related merge requests found
Pipeline #15588 passed with stage
in 33 minutes and 10 seconds
......@@ -113,6 +113,11 @@ class AbonneControllerChangePasswordOnKohaWithRestfulTest
'new_password' => 'test'])
->answers(json_encode(['success' => '0', 'reasons' => ['password_too_short' => 1]]))
->whenCalled('putData')
->with('http://plage.com/cgi-bin/koha/rest.pl/user/testingtest',
['data' => "[]"])
->answers(json_encode(['success' => '1', 'modified_fields' => []]))
->whenCalled('putData')
->with('http://plage.com/cgi-bin/koha/rest.pl/auth/change_password',
['user_name' => 'testingtest',
......@@ -364,4 +369,4 @@ class AbonneControllerChangePasswordOnNanookTest extends AbstractControllerTestC
public function serviceShouldHaveBeenCalledOnNanookServer() {
$this->assertTrue($this->_mock_web_client->methodHasBeenCalled('postData'));
}
}
\ No newline at end of file
}
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