Skip to content

Commit

Permalink
Fixed test test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
alhaji-aki committed Jan 8, 2020
1 parent 8edf8c0 commit bc3dc3e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/CartTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Created by PhpStorm.
* User: darryl
Expand Down Expand Up @@ -486,7 +487,7 @@ public function test_cart_get_total_quantity()
$this->assertFalse($this->cart->isEmpty(), 'prove first cart is not empty');

// now let's count the cart's quantity
$this->assertInternalType("int", $this->cart->getTotalQuantity(), 'Return type should be INT');
$this->assertIsInt($this->cart->getTotalQuantity(), 'Return type should be INT');
$this->assertEquals(4, $this->cart->getTotalQuantity(), 'Cart\'s quantity should be 4.');
}

Expand Down Expand Up @@ -551,6 +552,6 @@ public function test_cart_can_add_items_with_multidimensional_array_with_associa
$this->assertFalse($this->cart->isEmpty(), 'Cart should not be empty');
$this->assertCount(3, $this->cart->getContent()->toArray(), 'Cart should have 3 items');
$this->assertIsInt($this->cart->getTotalQuantity(), 'Return type should be INT');
$this->assertEquals(4, $this->cart->getTotalQuantity(),'Cart\'s quantity should be 4.');
$this->assertEquals(12, $this->cart->getTotalQuantity(), 'Cart\'s quantity should be 4.');
}
}

0 comments on commit bc3dc3e

Please sign in to comment.