Skip to content

Commit bc3dc3e

Browse files
committed
Fixed test test failure
1 parent 8edf8c0 commit bc3dc3e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/CartTest.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Created by PhpStorm.
45
* User: darryl
@@ -486,7 +487,7 @@ public function test_cart_get_total_quantity()
486487
$this->assertFalse($this->cart->isEmpty(), 'prove first cart is not empty');
487488

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

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

0 commit comments

Comments
 (0)