@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | /** |
70 | 70 | * @param object $object |
71 | 71 | * |
72 | - * @return \PHPUnit\Framework\MockObject\MockObject|LifecycleEventArgs |
|
72 | + * @return \Doctrine\Common\Persistence\Event\LifecycleEventArgs |
|
73 | 73 | */ |
74 | 74 | private function getLifecycleEventArgs($object) |
75 | 75 | { |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | } |
81 | 81 | |
82 | 82 | /** |
83 | - * @return \PHPUnit\Framework\MockObject\MockObject|StockMovementRepository |
|
83 | + * @return StockMovementRepository |
|
84 | 84 | */ |
85 | 85 | private function getStockMovementRepository() |
86 | 86 | { |
@@ -8,10 +8,10 @@ |
||
8 | 8 | use Doctrine\ORM\Events; |
9 | 9 | use Doctrine\ORM\ORMException; |
10 | 10 | use Loevgaard\DandomainFoundation\Entity\OrderLine; |
11 | +use Loevgaard\DandomainStockBundle\EventListener\OrderLineSubscriber; |
|
11 | 12 | use Loevgaard\DandomainStock\Exception\CurrencyMismatchException; |
12 | 13 | use Loevgaard\DandomainStock\Exception\UnsetCurrencyException; |
13 | 14 | use Loevgaard\DandomainStock\Repository\StockMovementRepository; |
14 | -use Loevgaard\DandomainStockBundle\EventListener\OrderLineSubscriber; |
|
15 | 15 | use PHPUnit\Framework\TestCase; |
16 | 16 | |
17 | 17 | final class OrderLineSubscriberTest extends TestCase |
@@ -127,7 +127,7 @@ |
||
127 | 127 | /** |
128 | 128 | * @param object $object |
129 | 129 | * |
130 | - * @return \PHPUnit\Framework\MockObject\MockObject|LifecycleEventArgs |
|
130 | + * @return \Doctrine\Common\Persistence\Event\LifecycleEventArgs |
|
131 | 131 | */ |
132 | 132 | private function getLifecycleEventArgs($object) |
133 | 133 | { |
@@ -11,12 +11,12 @@ |
||
11 | 11 | use Loevgaard\DandomainFoundation\Entity\Order; |
12 | 12 | use Loevgaard\DandomainFoundation\Entity\OrderLine; |
13 | 13 | use Loevgaard\DandomainFoundation\Entity\State; |
14 | +use Loevgaard\DandomainStockBundle\EventListener\OrderSubscriber; |
|
14 | 15 | use Loevgaard\DandomainStock\Exception\CurrencyMismatchException; |
15 | 16 | use Loevgaard\DandomainStock\Exception\StockMovementProductMismatchException; |
16 | 17 | use Loevgaard\DandomainStock\Exception\UndefinedPriceForCurrencyException; |
17 | 18 | use Loevgaard\DandomainStock\Exception\UnsetCurrencyException; |
18 | 19 | use Loevgaard\DandomainStock\Exception\UnsetProductException; |
19 | -use Loevgaard\DandomainStockBundle\EventListener\OrderSubscriber; |
|
20 | 20 | use PHPUnit\Framework\TestCase; |
21 | 21 | |
22 | 22 | final class OrderSubscriberTest extends TestCase |