File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
+
2
3
/**
3
4
* Created by PhpStorm.
4
5
* User: darryl
@@ -486,7 +487,7 @@ public function test_cart_get_total_quantity()
486
487
$ this ->assertFalse ($ this ->cart ->isEmpty (), 'prove first cart is not empty ' );
487
488
488
489
// 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 ' );
490
491
$ this ->assertEquals (4 , $ this ->cart ->getTotalQuantity (), 'Cart \'s quantity should be 4. ' );
491
492
}
492
493
@@ -551,6 +552,6 @@ public function test_cart_can_add_items_with_multidimensional_array_with_associa
551
552
$ this ->assertFalse ($ this ->cart ->isEmpty (), 'Cart should not be empty ' );
552
553
$ this ->assertCount (3 , $ this ->cart ->getContent ()->toArray (), 'Cart should have 3 items ' );
553
554
$ 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. ' );
555
556
}
556
557
}
You can’t perform that action at this time.
0 commit comments