/**
* Create variables used by tests.
*/
- protected function setUp()
+ public function setUp()
{
parent::setUp();
- // Reusable App object
- $this->app = BaseObject::getApp();
+ require_once __DIR__.'/../include/api.php';
// User data that the test database is populated with
$this->selfUser = [
{
parent::tearDown();
- $app = get_app();
- $app->argc = 1;
- $app->argv = ['home'];
+ $this->app->argc = 1;
+ $this->app->argv = ['home'];
}
/**