File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments