1 | <?php |
||
13 | abstract class WebTest extends WebTestCase |
||
14 | { |
||
15 | protected $identifiant = "[email protected]"; |
||
16 | protected $motDePasse = "motMotDePasse"; |
||
17 | |||
18 | /** |
||
19 | * Erase all database data. |
||
20 | */ |
||
21 | public function setUp() |
||
26 | |||
27 | public function tearDown() |
||
32 | |||
33 | public function getAuthClient() |
||
51 | |||
52 | /** |
||
53 | * Generates a URL from the given parameters. |
||
54 | * |
||
55 | * @param string $route The name of the route |
||
56 | * @param mixed $parameters An array of parameters |
||
57 | * @param int $referenceType The type of reference (one of the constants in UrlGeneratorInterface) |
||
58 | * |
||
59 | * @return string The generated URL |
||
60 | * |
||
61 | * @see UrlGeneratorInterface |
||
62 | */ |
||
63 | protected function generateUrl($route, $parameters = [], $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH) |
||
67 | |||
68 | /** |
||
69 | * @param string|null $name |
||
70 | * @return \Doctrine\DBAL\Connection |
||
71 | */ |
||
72 | public function getConnection($name = null) |
||
76 | |||
77 | /** |
||
78 | * @param string|null $name |
||
79 | * @return EntityManager |
||
80 | */ |
||
81 | public function getEntityManager($name = null) |
||
87 | |||
88 | /** |
||
89 | * @param $entiteCQFD |
||
90 | * @param string|null $name |
||
91 | * @return \Doctrine\Common\Persistence\ObjectRepository |
||
92 | */ |
||
93 | public function getRepository($entiteCQFD, $name = null) |
||
99 | |||
100 | protected $idGeneratorTypes = []; |
||
101 | |||
102 | protected function allowFixedIdsFor(array $entityClasses, $name = null) |
||
111 | |||
112 | protected function recoverIdGenerators($name = null) |
||
119 | |||
120 | public function loadFixtureFiles(array $paths = [], $append = false, $omName = null, $registryName = 'doctrine', $purgeMode = null) |
||
128 | |||
129 | public function executerCommande($command = []) |
||
139 | |||
140 | /** |
||
141 | * Call protected/private method of a class. |
||
142 | * |
||
143 | * @param object $object Instantiated object that we will run method on. |
||
144 | * @param string $methodName Method name to call |
||
145 | * @param array $parameters Array of parameters to pass into method. |
||
146 | * |
||
147 | * @return mixed Method return. |
||
148 | */ |
||
149 | public function invokeMethod($object, $methodName, array $parameters = []) |
||
157 | |||
158 | } |
||
|
|||
159 |
This check marks files that end in a newline character, i.e. an empy line.