@@ -3,7 +3,6 @@ discard block |
||
3 | 3 | namespace Oro\Bundle\SecurityBundle\Tests\Unit\EventListener; |
4 | 4 | |
5 | 5 | use Doctrine\Common\Persistence\ManagerRegistry; |
6 | - |
|
7 | 6 | use Symfony\Component\Console\Application; |
8 | 7 | use Symfony\Component\Console\Command\Command; |
9 | 8 | use Symfony\Component\Console\Event\ConsoleCommandEvent; |
@@ -14,7 +13,6 @@ discard block |
||
14 | 13 | use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage; |
15 | 14 | use Symfony\Component\Security\Core\SecurityContext; |
16 | 15 | use Symfony\Component\Security\Core\SecurityContextInterface; |
17 | - |
|
18 | 16 | use Oro\Bundle\SecurityBundle\Authentication\Token\ConsoleToken; |
19 | 17 | use Oro\Bundle\UserBundle\Entity\UserManager; |
20 | 18 | use Oro\Bundle\SecurityBundle\EventListener\ConsoleContextListener; |
@@ -3,9 +3,7 @@ |
||
3 | 3 | namespace Oro\Bundle\SecurityBundle\Tests\Unit\EventListener; |
4 | 4 | |
5 | 5 | use Doctrine\ORM\Event\OnFlushEventArgs; |
6 | - |
|
7 | 6 | use Symfony\Component\DependencyInjection\ContainerInterface; |
8 | - |
|
9 | 7 | use Oro\Bundle\SecurityBundle\EventListener\OwnerTreeListener; |
10 | 8 | |
11 | 9 | class OwnerTreeListenerTest extends \PHPUnit_Framework_TestCase |
@@ -6,9 +6,7 @@ |
||
6 | 6 | use Doctrine\ORM\Query; |
7 | 7 | use Doctrine\ORM\Query\AST\SelectStatement; |
8 | 8 | use Doctrine\ORM\Query\AST\PathExpression; |
9 | - |
|
10 | 9 | use Oro\Bundle\TestFrameworkBundle\Test\Doctrine\ORM\OrmTestCase; |
11 | - |
|
12 | 10 | use Oro\Bundle\SecurityBundle\ORM\Walker\AclHelper; |
13 | 11 | use Oro\Bundle\SecurityBundle\ORM\Walker\AclWalker; |
14 | 12 | use Oro\Bundle\SecurityBundle\ORM\Walker\OwnershipConditionDataBuilder; |
@@ -173,7 +173,7 @@ |
||
173 | 173 | |
174 | 174 | /** |
175 | 175 | * @param bool $supports |
176 | - * @return AccessLevelOwnershipDecisionMakerInterface|\PHPUnit_Framework_MockObject_MockObject |
|
176 | + * @return AccessLevelOwnershipDecisionMakerInterface |
|
177 | 177 | */ |
178 | 178 | protected function getOwnershipDecisionMakerMock($supports = true) |
179 | 179 | { |
@@ -123,7 +123,7 @@ |
||
123 | 123 | } |
124 | 124 | |
125 | 125 | /** |
126 | - * @return \PHPUnit_Framework_MockObject_MockObject|OwnerTreeProviderInterface |
|
126 | + * @return OwnerTreeProviderInterface |
|
127 | 127 | */ |
128 | 128 | protected function getProviderMock() |
129 | 129 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Bundle\SecurityBundle\Tests\Unit\Owner; |
4 | 4 | |
5 | 5 | use Symfony\Component\DependencyInjection\ContainerInterface; |
6 | - |
|
7 | 6 | use Oro\Bundle\SecurityBundle\Acl\Domain\ObjectIdAccessor; |
8 | 7 | use Oro\Bundle\SecurityBundle\Owner\EntityOwnerAccessor; |
9 | 8 | use Oro\Bundle\SecurityBundle\Owner\EntityOwnershipDecisionMaker; |
@@ -3,9 +3,7 @@ |
||
3 | 3 | namespace Oro\Bundle\SecurityBundle\Tests\Unit\Owner\Metadata; |
4 | 4 | |
5 | 5 | use Doctrine\Common\Cache\CacheProvider; |
6 | - |
|
7 | 6 | use Symfony\Component\DependencyInjection\ContainerInterface; |
8 | - |
|
9 | 7 | use Oro\Bundle\EntityConfigBundle\Config\Config; |
10 | 8 | use Oro\Bundle\EntityConfigBundle\Config\Id\EntityConfigId; |
11 | 9 | use Oro\Bundle\EntityConfigBundle\Provider\ConfigProvider; |
@@ -175,7 +175,7 @@ |
||
175 | 175 | /** |
176 | 176 | * @param bool $isSupports |
177 | 177 | * @param array $metadata |
178 | - * @return MetadataProviderInterface|\PHPUnit_Framework_MockObject_MockObject |
|
178 | + * @return MetadataProviderInterface |
|
179 | 179 | */ |
180 | 180 | protected function getMetadataProviderMock($isSupports = true, array $metadata = []) |
181 | 181 | { |
@@ -3,9 +3,7 @@ |
||
3 | 3 | namespace Oro\Bundle\SecurityBundle\Tests\Unit\Owner\Metadata; |
4 | 4 | |
5 | 5 | use Doctrine\Common\Cache\CacheProvider; |
6 | - |
|
7 | 6 | use Symfony\Component\DependencyInjection\ContainerInterface; |
8 | - |
|
9 | 7 | use Oro\Bundle\EntityBundle\ORM\EntityClassResolver; |
10 | 8 | use Oro\Bundle\EntityConfigBundle\Config\Config; |
11 | 9 | use Oro\Bundle\EntityConfigBundle\Config\Id\EntityConfigId; |