This repository has been archived on 2026-10-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
wp-galtinn-auth/tests/AuthTest.php
T
2018-01-20 02:31:52 +01:00

21 lines
530 B
PHP

<?php
declare(strict_types=1);
use PHPUnit\Framework\TestCase;
require_once '../GaltinnAuth.php';
define('GALTINN_URL', 'http://127.0.0.1:8000/api/me/basic/');
final class AuthTest extends TestCase {
public function testCanBeCreatedFromValidEmailAddress(){
$username = 'admin';
$pasword = 'admin';
$galtinn = new GaltinnAuth($run_wp_hooks=false);
$res = $galtinn->get_galtinn_user($username, $pasword);
$this->assertEquals(200, $res->status_code, var_export($res, true));
}
}