@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | protected $slugger; |
20 | 20 | |
21 | 21 | /** |
22 | - * @param Doctrine\ORM\EntityManager $em |
|
22 | + * @param EntityManager $em |
|
23 | 23 | * @param Slugger $slugger |
24 | 24 | */ |
25 | 25 | public function __construct(EntityManager $em, Slugger $slugger) { |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | * @param string $name |
52 | 52 | * @param string $description |
53 | 53 | * @param UserInterface $productOwner |
54 | - * @return \DevelopTech\AgilityBundle\ProjectModel |
|
54 | + * @return \Developtech\AgilityBundle\Model\ProjectModel |
|
55 | 55 | */ |
56 | 56 | public function createProject($name, $description, UserInterface $productOwner) { |
57 | 57 | $project = |
@@ -63,6 +63,9 @@ discard block |
||
63 | 63 | $this->manager->editProject(2, 'Unknown project', 'Where is my project ?'); |
64 | 64 | } |
65 | 65 | |
66 | + /** |
|
67 | + * @return \Doctrine\ORM\EntityManager |
|
68 | + */ |
|
66 | 69 | public function getEntityManagerMock() { |
67 | 70 | $entityManagerMock = $this |
68 | 71 | ->getMockBuilder('Doctrine\ORM\EntityManager') |
@@ -118,7 +121,7 @@ discard block |
||
118 | 121 | |
119 | 122 | /** |
120 | 123 | * @param mixed $id |
121 | - * @return Project|null |
|
124 | + * @return null|\Developtech\AgilityBundle\Model\ProjectModel |
|
122 | 125 | */ |
123 | 126 | public function getProjectMock($id) { |
124 | 127 | if($id === 2) { |
@@ -3,12 +3,9 @@ |
||
3 | 3 | namespace Developtech\AgilityBundle\Tests\Manager; |
4 | 4 | |
5 | 5 | use Developtech\AgilityBundle\Manager\ProjectManager; |
6 | - |
|
7 | 6 | use Developtech\AgilityBundle\Entity\Project; |
8 | 7 | use Developtech\AgilityBundle\Tests\Mock\User; |
9 | - |
|
10 | 8 | use Developtech\AgilityBundle\Utils\Slugger; |
11 | - |
|
12 | 9 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
13 | 10 | |
14 | 11 | class ProjectManagerTest extends \PHPUnit_Framework_TestCase { |