www/src/AdminBundle/Tests/Controller/LicenseeControllerTest.php 1 location
|
@@ 94-102 (lines=9) @@
|
| 91 |
|
/** |
| 92 |
|
* @return \PHPUnit_Framework_MockObject_MockObject|LicenseeRepository |
| 93 |
|
*/ |
| 94 |
|
private function createLicenseeRepositoryMock(): LicenseeRepository |
| 95 |
|
{ |
| 96 |
|
$repository = $this->getMockBuilder(LicenseeRepository::class) |
| 97 |
|
->disableOriginalConstructor() |
| 98 |
|
->setMethods(['findAll', 'save', 'find', 'findBy', 'findOneBy', 'getClassName', 'findOneByName']) |
| 99 |
|
->getMock(); |
| 100 |
|
|
| 101 |
|
return $repository; |
| 102 |
|
} |
| 103 |
|
} |
| 104 |
|
|
www/src/AdminBundle/Tests/Controller/TextnodeControllerTest.php 1 location
|
@@ 142-150 (lines=9) @@
|
| 139 |
|
/** |
| 140 |
|
* @return \PHPUnit_Framework_MockObject_MockObject|LicenseeRepositoryInterface |
| 141 |
|
*/ |
| 142 |
|
private function createLicenseeRepositoryMock(): LicenseeRepositoryInterface |
| 143 |
|
{ |
| 144 |
|
$repository = $this->getMockBuilder(LicenseeRepositoryInterface::class) |
| 145 |
|
->disableOriginalConstructor() |
| 146 |
|
->setMethods(['findAll', 'save', 'find', 'findBy', 'findOneBy', 'getClassName', 'findOneByName']) |
| 147 |
|
->getMock(); |
| 148 |
|
|
| 149 |
|
return $repository; |
| 150 |
|
} |
| 151 |
|
} |
| 152 |
|
|
www/src/AdminBundle/Tests/Controller/UserControllerTest.php 1 location
|
@@ 138-144 (lines=7) @@
|
| 135 |
|
/** |
| 136 |
|
* @return UserRepositoryInterface|\PHPUnit_Framework_MockObject_MockObject |
| 137 |
|
*/ |
| 138 |
|
private function createUserRepositoryMock(): UserRepositoryInterface |
| 139 |
|
{ |
| 140 |
|
return $this->getMockBuilder(UserRepositoryInterface::class) |
| 141 |
|
->disableOriginalConstructor() |
| 142 |
|
->setMethods(['createQueryBuilder', 'find', 'findByEmail', 'findAll', 'save', 'findBy', 'findOneBy', 'getClassName']) |
| 143 |
|
->getMock(); |
| 144 |
|
} |
| 145 |
|
|
| 146 |
|
/** |
| 147 |
|
* @return \Swift_Mailer|\PHPUnit_Framework_MockObject_MockObject |
www/src/DembeloMain/Tests/Command/InstallCommandTest.php 1 location
|
@@ 142-156 (lines=15) @@
|
| 139 |
|
/** |
| 140 |
|
* @return UserRepositoryInterface|\PHPUnit_Framework_MockObject_MockObject |
| 141 |
|
*/ |
| 142 |
|
private function createUserRepositoryMock(): UserRepositoryInterface |
| 143 |
|
{ |
| 144 |
|
$methods = [ |
| 145 |
|
'findOneByEmail', |
| 146 |
|
'find', |
| 147 |
|
'findByEmail', |
| 148 |
|
'findAll', |
| 149 |
|
'save', |
| 150 |
|
'findBy', |
| 151 |
|
'findOneBy', |
| 152 |
|
'getClassName', |
| 153 |
|
]; |
| 154 |
|
|
| 155 |
|
return $this->getMockBuilder(UserRepositoryInterface::class)->setMethods($methods)->getMock(); |
| 156 |
|
} |
| 157 |
|
|
| 158 |
|
/** |
| 159 |
|
* @return BasePasswordEncoder|\PHPUnit_Framework_MockObject_MockObject |