@@ -4,16 +4,13 @@ |
||
4 | 4 | |
5 | 5 | use Oro\Bundle\WorkflowBundle\Model\ContextAccessor; |
6 | 6 | use Symfony\Component\Form\Test\FormIntegrationTestCase; |
7 | - |
|
8 | 7 | use Oro\Bundle\WorkflowBundle\Form\EventListener\DefaultValuesListener; |
9 | 8 | use Oro\Bundle\WorkflowBundle\Form\EventListener\InitActionsListener; |
10 | 9 | use Oro\Bundle\WorkflowBundle\Form\EventListener\RequiredAttributesListener; |
11 | 10 | use Oro\Bundle\WorkflowBundle\Form\Type\WorkflowAttributesType; |
12 | - |
|
13 | 11 | use Oro\Bundle\WorkflowBundle\Entity\WorkflowItem; |
14 | 12 | use Oro\Bundle\WorkflowBundle\Entity\WorkflowStep; |
15 | 13 | use Oro\Bundle\WorkflowBundle\Entity\WorkflowDefinition; |
16 | - |
|
17 | 14 | use Oro\Bundle\WorkflowBundle\Model\Step; |
18 | 15 | use Oro\Bundle\WorkflowBundle\Model\Attribute; |
19 | 16 | use Oro\Bundle\WorkflowBundle\Model\WorkflowData; |
@@ -117,6 +117,9 @@ discard block |
||
117 | 117 | $listAction->execute(array()); |
118 | 118 | } |
119 | 119 | |
120 | + /** |
|
121 | + * @return \Oro\Bundle\WorkflowBundle\Model\Action\ActionInterface |
|
122 | + */ |
|
120 | 123 | protected function getExceptionAction() |
121 | 124 | { |
122 | 125 | $action = $this->getMockBuilder('Oro\Bundle\WorkflowBundle\Model\Action\ActionInterface') |
@@ -127,6 +130,10 @@ discard block |
||
127 | 130 | ->method('execute') |
128 | 131 | ->will( |
129 | 132 | $this->returnCallback( |
133 | + |
|
134 | + /** |
|
135 | + * @return \Oro\Bundle\WorkflowBundle\Model\Action\ActionInterface |
|
136 | + */ |
|
130 | 137 | function () { |
131 | 138 | throw new \Exception('TEST'); |
132 | 139 | } |
@@ -35,7 +35,7 @@ |
||
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
38 | - * @return \PHPUnit_Framework_MockObject_MockObject |
|
38 | + * @return \Oro\Bundle\WorkflowBundle\Model\AttributeGuesser |
|
39 | 39 | */ |
40 | 40 | protected function getAttributeGuesser() |
41 | 41 | { |
@@ -317,7 +317,7 @@ |
||
317 | 317 | /** |
318 | 318 | * @param string $templateType |
319 | 319 | * @param array $configuration |
320 | - * @param $actualTransition |
|
320 | + * @param Transition $actualTransition |
|
321 | 321 | */ |
322 | 322 | protected function assertTemplate($templateType, $configuration, $actualTransition) |
323 | 323 | { |
@@ -58,6 +58,9 @@ |
||
58 | 58 | $this->assertEquals($expected, $transitions->toArray()); |
59 | 59 | } |
60 | 60 | |
61 | + /** |
|
62 | + * @param string $name |
|
63 | + */ |
|
61 | 64 | protected function getTransitionMock($name, $isStart = false, $step = null) |
62 | 65 | { |
63 | 66 | $transition = $this->getMockBuilder('Oro\Bundle\WorkflowBundle\Model\Transition') |
@@ -891,7 +891,7 @@ |
||
891 | 891 | * @param string $name |
892 | 892 | * @param array $entityAttributes |
893 | 893 | * @param array $startTransitions |
894 | - * @return Workflow|\PHPUnit_Framework_MockObject_MockObject |
|
894 | + * @return Workflow |
|
895 | 895 | */ |
896 | 896 | protected function createWorkflow( |
897 | 897 | $name = self::TEST_WORKFLOW_NAME, |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Component\PropertyAccess\Tests\Unit; |
4 | 4 | |
5 | 5 | use Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException; |
6 | - |
|
7 | 6 | use Oro\Component\PropertyAccess\PropertyAccessor; |
8 | 7 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClass; |
9 | 8 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClassMagicCall; |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | /** |
200 | 200 | * Get all data from the directory $dir |
201 | 201 | * |
202 | - * @param $dir |
|
202 | + * @param string $dir |
|
203 | 203 | * |
204 | 204 | * @return array |
205 | 205 | */ |
@@ -311,7 +311,7 @@ discard block |
||
311 | 311 | /** |
312 | 312 | * @param string $dir |
313 | 313 | * |
314 | - * @return \SplFileInfo[]|\Iterator |
|
314 | + * @return \CallbackFilterIterator |
|
315 | 315 | */ |
316 | 316 | protected function getDirectoryContents($dir) |
317 | 317 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Component\PropertyAccess\Tests\Unit; |
4 | 4 | |
5 | 5 | use Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException; |
6 | - |
|
7 | 6 | use Oro\Component\PropertyAccess\PropertyAccessor; |
8 | 7 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClass; |
9 | 8 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClassMagicCall; |
@@ -270,7 +270,7 @@ |
||
270 | 270 | * Adds $resource to $result |
271 | 271 | * |
272 | 272 | * @param array $result |
273 | - * @param mixed $resource |
|
273 | + * @param null|\Oro\Component\Config\CumulativeResourceInfo $resource |
|
274 | 274 | */ |
275 | 275 | protected function addLoadedResource(array &$result, $resource) |
276 | 276 | { |
@@ -3,10 +3,7 @@ |
||
3 | 3 | namespace Oro\Component\ConfigExpression\Tests\Unit; |
4 | 4 | |
5 | 5 | use Symfony\Component\Yaml\Yaml; |
6 | - |
|
7 | -use Oro\Component\ConfigExpression\Condition; |
|
8 | 6 | use Oro\Component\ConfigExpression\ConfigExpressions; |
9 | -use Oro\Component\ConfigExpression\Func; |
|
10 | 7 | use Oro\Component\ConfigExpression\Tests\Unit\Fixtures\ItemStub; |
11 | 8 | |
12 | 9 | class EvaluateExpressionTest extends \PHPUnit_Framework_TestCase |