Skip to content

Commit

Permalink
fix ResetPasswordCreateProcessorTest
Browse files Browse the repository at this point in the history
  • Loading branch information
usu committed Apr 30, 2024
1 parent 843b64f commit 8ecbf4a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/tests/State/ResetPasswordCreateProcessorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ public function testCreateWithUnknownEmailDoesNotCreateResetKey() {
$this->resetPassword->email = self::EMAIL;

$data = $this->processor->process($this->resetPassword, new Post());

self::assertThat($data, self::isNull());
}

public function testCreateWithKnowneMailCreatesResetKey() {
Expand Down Expand Up @@ -124,6 +126,6 @@ public function testCreateWithKnowneMailCreatesResetKey() {
$this->resetPassword->email = self::EMAIL;
$data = $this->processor->process($this->resetPassword, new Post());

self::assertThat($data->id, self::logicalNot(self::isNull()));
self::assertThat($data, self::isNull());
}
}

0 comments on commit 8ecbf4a

Please sign in to comment.