. /** * ActivityPub implementation for GNU social * * @package GNUsocial * @author Diogo Cordeiro * @copyright 2018-2019 Free Software Foundation, Inc http://www.fsf.org * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @link http://www.gnu.org/software/social/ */ namespace Tests; trait CreatesApplication { /** * Creates the application. * * @return todo */ public static function createApplication() { if (!defined('INSTALLDIR')) { define('INSTALLDIR', __DIR__ . '/../../../'); } if (!defined('GNUSOCIAL')) { define('GNUSOCIAL', true); } if (!defined('STATUSNET')) { define('STATUSNET', true); // compatibility } require INSTALLDIR . '/lib/common.php'; return true; } }