Revision ef37f43f test/functional/MyModuleFunctionalTest.php
b/test/functional/MyModuleFunctionalTest.php | ||
---|---|---|
44 | 44 |
class MyModuleFunctionalTest extends \PHPUnit_Extensions_Selenium2TestCase |
45 | 45 |
{ |
46 | 46 |
// TODO: move to a global configuration file? |
47 |
/** @var string Base URL of the webserver under test */ |
|
47 | 48 |
protected static $base_url = 'http://dev.zenfusion.fr'; |
49 |
/** |
|
50 |
* @var string Dolibarr admin username |
|
51 |
* @see authenticate |
|
52 |
*/ |
|
48 | 53 |
protected static $dol_admin_user = 'admin'; |
54 |
/** |
|
55 |
* @var string Dolibarr admin password |
|
56 |
* @see authenticate |
|
57 |
*/ |
|
49 | 58 |
protected static $dol_admin_pass = 'admin'; |
59 |
/** @var int Dolibarr module ID */ |
|
50 | 60 |
private static $module_id = 500000; // TODO: autodetect? |
51 | 61 |
|
62 |
/** @var array Browsers to test with */ |
|
52 | 63 |
public static $browsers = array( |
53 | 64 |
array( |
54 | 65 |
'browser' => 'Google Chrome on Linux', |
... | ... | |
172 | 183 |
} |
173 | 184 |
|
174 | 185 |
/** |
186 |
* Test access to the configuration page |
|
187 |
* |
|
175 | 188 |
* @depends testModuleEnabled |
176 | 189 |
*/ |
177 | 190 |
public function testConfigurationPage() |
... | ... | |
182 | 195 |
} |
183 | 196 |
|
184 | 197 |
/** |
198 |
* Test access to the about page |
|
199 |
* |
|
185 | 200 |
* @depends testConfigurationPage |
186 | 201 |
*/ |
187 | 202 |
public function testAboutPage() |
... | ... | |
192 | 207 |
} |
193 | 208 |
|
194 | 209 |
/** |
210 |
* Test about page is rendering Markdown |
|
211 |
* |
|
195 | 212 |
* @depends testAboutPage |
196 | 213 |
*/ |
197 | 214 |
public function testAboutPageRendersMarkdownReadme() |
... | ... | |
206 | 223 |
} |
207 | 224 |
|
208 | 225 |
/** |
226 |
* Test box is properly declared |
|
227 |
* |
|
209 | 228 |
* @depends testModuleEnabled |
210 | 229 |
*/ |
211 | 230 |
public function testBoxDeclared() |
... | ... | |
216 | 235 |
} |
217 | 236 |
|
218 | 237 |
/** |
238 |
* Test trigger is properly enabled |
|
239 |
* |
|
219 | 240 |
* @depends testModuleEnabled |
220 | 241 |
*/ |
221 | 242 |
public function testTriggerDeclared() |
... | ... | |
230 | 251 |
} |
231 | 252 |
|
232 | 253 |
/** |
254 |
* Test trigger is properly declared |
|
255 |
* |
|
233 | 256 |
* @depends testTriggerDeclared |
234 | 257 |
*/ |
235 | 258 |
public function testTriggerEnabled() |
Also available in: Unified diff