Skip to content

Commit

Permalink
Removed remnant "isNeutral" test
Browse files Browse the repository at this point in the history
  • Loading branch information
fulopattila122 committed Mar 4, 2024
1 parent 58b2e2a commit ab37a25
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/Adjustments/Tests/Unit/AdjustmentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,20 +301,4 @@ public function it_is_a_credit_if_it_decreases_the_total()
$this->assertEquals(-20, $adjustment->getAmount());
$this->assertTrue($adjustment->isCredit());
}

/** @test */
public function it_is_neutral_if_the_amount_is_zero()
{
$adjustment = Adjustment::create([
'type' => AdjustmentType::SHIPPING,
'adjustable_type' => 'order',
'adjustable_id' => 1,
'adjuster' => 'fixed_amount',
'title' => 'Promotion',
'amount' => 0,
]);

$this->assertEquals(0, $adjustment->getAmount());
$this->assertTrue($adjustment->isNeutral());
}
}

0 comments on commit ab37a25

Please sign in to comment.