Skip to content

Commit

Permalink
Password update test added
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoumpierre committed Mar 26, 2018
1 parent 6f16817 commit 940a9e0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/Endpoints/UserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 940a9e0

Please sign in to comment.