Passed
Push — master ( a11b84...e50832 )
by Dariusz
05:54
created
tests/CartPresenterTest.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@
 block discarded – undo
2 2
 
3 3
 namespace Plane\Shop\Tests;
4 4
 
5
-use Plane\Shop\CartItem;
6 5
 use OutOfBoundsException;
6
+use Plane\Shop\CartItem;
7 7
 use Plane\Shop\CartPresenter;
8
+use Plane\Shop\Discount\TotalPriceThresholdDiscount;
8 9
 use Plane\Shop\PaymentInterface;
9 10
 use Plane\Shop\ShippingInterface;
10
-use Plane\Shop\Discount\TotalPriceThresholdDiscount;
11 11
 
12 12
 class CartPresenterTest extends \PHPUnit\Framework\TestCase
13 13
 {
Please login to merge, or discard this patch.
tests/CartTrait.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -44,6 +44,9 @@  discard block
 block discarded – undo
44 44
         $this->secondCartItem = new CartItem($product, 2);
45 45
     }
46 46
 
47
+    /**
48
+     * @return \Plane\Shop\PaymentInterface
49
+     */
47 50
     protected function getPaymentMock()
48 51
     {
49 52
         $payment = $this->createMock(Payment::class);
@@ -60,6 +63,9 @@  discard block
 block discarded – undo
60 63
         return $payment;
61 64
     }
62 65
 
66
+    /**
67
+     * @return \Plane\Shop\ShippingInterface
68
+     */
63 69
     protected function getShippingMock()
64 70
     {
65 71
         $shipping  = $this->createMock(Shipping::class);
Please login to merge, or discard this patch.