Este repositorio ha sido archivado en 2023-08-20. Puedes ver archivos y clonarlo, pero no puedes hacer push o abrir incidencias o pull request.
Files
gnu-social-v2-archive-activ…/tests/CreatesApplication.php
Diogo Cordeiro 4edd3ef398 Added Activitypub_RSA
Fixed #35 and related serious issues
We now have proper ActivityPub profiles
2018-07-28 02:18:30 +01:00

29 líneas
555 B
PHP
Archivo Ejecutable

<?php
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;
}
}