Commit | Line | Data |
---|---|---|
9e80c052 TO |
1 | <?php |
2 | ||
3 | /** | |
4 | * Class CiviEndToEndTestCase | |
5 | * | |
6 | * An end-to-end test case in which we have booted Civi+CMS and loaded the | |
7 | * admin user in the local process. | |
8 | * | |
9 | * Note: If you need to work as a different user, try using `cv()` or | |
10 | * a web-service. | |
11 | */ | |
12 | class CiviEndToEndTestCase extends PHPUnit_Framework_TestCase implements \Civi\Test\EndToEndInterface { | |
13 | ||
f1d6a342 | 14 | public static function setUpBeforeClass() { |
9e80c052 TO |
15 | CRM_Core_Config::singleton(1, 1); |
16 | CRM_Utils_System::loadBootStrap(array( | |
17 | 'name' => $GLOBALS['_CV']['ADMIN_USER'], | |
18 | 'pass' => $GLOBALS['_CV']['ADMIN_PASS'], | |
19 | )); | |
f1d6a342 | 20 | CRM_Utils_System::synchronizeUsers(); |
9e80c052 | 21 | |
f1d6a342 | 22 | parent::setUpBeforeClass(); |
9e80c052 TO |
23 | } |
24 | ||
25 | } |