CiviEndToEndTestcase - Base class
[civicrm-core.git] / tests / phpunit / CiviTest / CiviEndToEndTestCase.php
CommitLineData
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 */
12class CiviEndToEndTestCase extends PHPUnit_Framework_TestCase implements \Civi\Test\EndToEndInterface {
13
14 protected function setUp() {
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
21 parent::setUp();
22 }
23
24}