Skip to content

Commit

Permalink
Fixed specs
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Aug 25, 2020
1 parent 0cae33e commit 3818d30
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,8 @@ function it_recognizes_subject_if_order_total_is_greater_than_configured_amount(
$channel->getCode()->willReturn('CHANNEL');

$this->isEligible($subject, [
'total' => [
'CHANNEL' => [
'amount' => 100,
],
'CHANNEL' => [
'amount' => 100,
],
])->shouldReturn(true);
}
Expand All @@ -68,10 +66,8 @@ function it_recognizes_subject_if_order_total_is_equal_to_configured_amount(
$channel->getCode()->willReturn('CHANNEL');

$this->isEligible($subject, [
'total' => [
'CHANNEL' => [
'amount' => 100,
],
'CHANNEL' => [
'amount' => 100,
],
])->shouldReturn(true);
}
Expand All @@ -87,10 +83,8 @@ function it_denies_subject_if_order_total_is_less_than_configured_amount(
$channel->getCode()->willReturn('CHANNEL');

$this->isEligible($subject, [
'total' => [
'CHANNEL' => [
'amount' => 100,
],
'CHANNEL' => [
'amount' => 100,
],
])->shouldReturn(false);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,8 @@ public function it_recognizes_subject_if_order_total_is_less_than_configured_amo
$channel->getCode()->willReturn('CHANNEL');

$this->isEligible($subject, [
'total' => [
'CHANNEL' => [
'amount' => 100,
],
'CHANNEL' => [
'amount' => 100,
],
])->shouldReturn(true);
}
Expand All @@ -68,10 +66,8 @@ public function it_recognizes_subject_if_order_total_is_equal_to_configured_amou
$channel->getCode()->willReturn('CHANNEL');

$this->isEligible($subject, [
'total' => [
'CHANNEL' => [
'amount' => 100,
],
'CHANNEL' => [
'amount' => 100,
],
])->shouldReturn(true);
}
Expand All @@ -87,10 +83,8 @@ public function it_denies_subject_if_order_total_is_greater_than_configured_amou
$channel->getCode()->willReturn('CHANNEL');

$this->isEligible($subject, [
'total' => [
'CHANNEL' => [
'amount' => 100,
],
'CHANNEL' => [
'amount' => 100,
],
])->shouldReturn(false);
}
Expand Down

0 comments on commit 3818d30

Please sign in to comment.