Skip to content

Commit

Permalink
fix test: filters are executed twice
Browse files Browse the repository at this point in the history
(cherry picked from commit b9eda60)
  • Loading branch information
tflori committed Apr 15, 2018
1 parent c449edc commit 928eabe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Gate/GetDataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function executesFilterOnField()
$gate->addField('username', $field);

$field->shouldReceive('filter')->with('john', ['username' => 'john', 'password' => 'abc123'])
->once()->andReturn('john');
->atLeast()->once()->andReturn('john');

$gate->getData();
}
Expand Down

0 comments on commit 928eabe

Please sign in to comment.