@@ -2,10 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace JhUser\Controller; |
4 | 4 | |
5 | -use JhUser\Entity\HierarchicalRole; |
|
6 | -use JhUser\Entity\Permission; |
|
7 | 5 | use Zend\Mvc\Controller\AbstractActionController; |
8 | -use Zend\Console\Request as ConsoleRequest; |
|
9 | 6 | use Doctrine\Common\Persistence\ObjectManager; |
10 | 7 | use JhUser\Repository\UserRepositoryInterface; |
11 | 8 | use JhUser\Repository\RoleRepositoryInterface; |
@@ -78,6 +78,10 @@ |
||
78 | 78 | $this->assertSame($this->user->getRoles()[1], $this->role); |
79 | 79 | } |
80 | 80 | |
81 | + /** |
|
82 | + * @param string $userEmail |
|
83 | + * @param string $roleId |
|
84 | + */ |
|
81 | 85 | public function configureMocks($userEmail, $roleId) |
82 | 86 | { |
83 | 87 | $userRepoMock = $this->getMock('JhUser\Repository\UserRepositoryInterface'); |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use JhUser\Entity\User; |
6 | 6 | use JhUser\Entity\HierarchicalRole; |
7 | 7 | use Zend\Console\Request; |
8 | -use Zend\Http\Request as HttpRequest; |
|
9 | 8 | use Zend\Test\PHPUnit\Controller\AbstractConsoleControllerTestCase; |
10 | 9 | |
11 | 10 | /** |
@@ -22,10 +22,8 @@ |
||
22 | 22 | use Zend\Mvc\Service\ServiceManagerConfig; |
23 | 23 | use Zend\ServiceManager\ServiceManager; |
24 | 24 | use Zend\ServiceManager\ServiceLocatorInterface; |
25 | - |
|
26 | 25 | use Doctrine\Common\DataFixtures\Purger\ORMPurger as FixturePurger; |
27 | 26 | use Doctrine\Common\DataFixtures\Executor\ORMExecutor as FixtureExecutor; |
28 | - |
|
29 | 27 | use Doctrine\ORM\Tools\SchemaTool; |
30 | 28 | |
31 | 29 | /** |