| 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 | |
| 14 | public static function setUpBeforeClass() { |
| 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 | )); |
| 20 | CRM_Utils_System::synchronizeUsers(); |
| 21 | |
| 22 | parent::setUpBeforeClass(); |
| 23 | } |
| 24 | |
| 25 | } |