The boot.php had been cleared of most functions

This commit is contained in:
Michael 2021-11-04 20:29:59 +00:00
commit 63da4a75e9
37 changed files with 279 additions and 401 deletions

View file

@ -31,7 +31,7 @@ $a->config['sitename'] = "Friendica My Network";
// and/or approve/deny the request.
// In order to perform system administration via the admin panel, admin_email
// must precisely match the email address of the person logged in.
$a->config['register_policy'] = REGISTER_OPEN;
$a->config['register_policy'] = Friendica\Module\Register::OPEN;
$a->config['register_text'] = 'A register text';
$a->config['admin_email'] = 'admin@test.it';
$a->config['admin_nickname'] = 'Friendly admin';

View file

@ -26,6 +26,7 @@ use Friendica\App;
use Friendica\Core\Config\Capability\IManageConfigValues;
use Friendica\Core\Config\Type\JitConfig;
use Friendica\Core\Lock\Type\SemaphoreLock;
use Friendica\Core\System;
use Friendica\DI;
use Mockery;
use Mockery\MockInterface;
@ -73,7 +74,7 @@ class SemaphoreLockTest extends LockTest
*/
public function testMissingFileNotOverriding()
{
$file = get_temppath() . '/test.sem';
$file = System::getTempPath() . '/test.sem';
touch($file);
self::assertTrue(file_exists($file));
@ -91,7 +92,7 @@ class SemaphoreLockTest extends LockTest
*/
public function testMissingFileOverriding()
{
$file = get_temppath() . '/test.sem';
$file = System::getTempPath() . '/test.sem';
touch($file);
self::assertTrue(file_exists($file));
@ -104,7 +105,7 @@ class SemaphoreLockTest extends LockTest
*/
public function testOverrideSemFile()
{
$file = get_temppath() . '/test.sem';
$file = System::getTempPath() . '/test.sem';
touch($file);
self::assertTrue(file_exists($file));