From 940a9e0dfc2779365406e7e2fb8ff9c40464c8ab Mon Sep 17 00:00:00 2001 From: Eduardo Pieretti Umpierre Date: Mon, 26 Mar 2018 15:04:33 -0300 Subject: [PATCH] Password update test added --- tests/Endpoints/UserTest.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/Endpoints/UserTest.php b/tests/Endpoints/UserTest.php index 95d49e2..ffd8eb7 100644 --- a/tests/Endpoints/UserTest.php +++ b/tests/Endpoints/UserTest.php @@ -157,6 +157,17 @@ public function testUpdatingUser() ]); $this->assertResponseOk(); + // Valid request + $this->put(UserTest::URL . $user->id, [ + 'name' => 'Eduardo', + 'email' => '123123123123', + 'cpf' => '123123123123', + 'role' => '2', + 'password' => '123', + 'passwordRepeat' => '123', + ]); + $this->assertResponseOk(); + // No password repeat $this->put(UserTest::URL . $user->id, [ 'name' => 'Eduardo',