]> git.mxchange.org Git - friendica.git/blob - tests/Util/authtest/authtest.php
Merge pull request #12154 from MrPetovan/bug/12084-strip-RTL-override
[friendica.git] / tests / Util / authtest / authtest.php
1 <?php
2 /**
3  * Name: TEST-ADDON: Authentication "allow all"
4  * Description: For testing purpose only
5  * Version: 1.0
6  * Author: Philipp Holzer <admin@philipp.info>
7  */
8
9 use Friendica\Core\Hook;
10 use Friendica\Model\User;
11
12 function authtest_install()
13 {
14         Hook::register('authenticate', 'tests/Util/authtest/authtest.php', 'authtest_authenticate');
15 }
16
17 function authtest_authenticate($a,&$b)
18 {
19         $b['authenticated'] = \Friendica\Test\Util\AuthTestConfig::$authenticated;
20         $b['user_record']   = User::getById(\Friendica\Test\Util\AuthTestConfig::$user_id);
21 }