Dev SSO: Tables, SAML

This commit is contained in:
2024-12-30 09:44:47 +01:00
parent f7d11c297d
commit 50cc0fc5be
26 changed files with 710 additions and 112 deletions

View File

@@ -10,6 +10,7 @@ use Core\Objects\DatabaseEntity\Controller\DatabaseEntity;
use Core\Objects\DatabaseEntity\Controller\DatabaseEntityHandler;
use Core\Objects\DatabaseEntity\User;
// FIXME: Tests must be run in specific order (create, insert, drop)
class DatabaseEntityTest extends \PHPUnit\Framework\TestCase {
static User $USER;

View File

@@ -152,5 +152,12 @@ class ParameterTest extends \PHPUnit\Framework\TestCase {
$this->assertTrue($integerRegex->parseParam(12));
$this->assertFalse($integerRegex->parseParam("012"));
$this->assertFalse($integerRegex->parseParam("1.2"));
$uuidRegex = new \Core\API\Parameter\UuidType("uuid_regex");
$this->assertTrue($uuidRegex->parseParam("e3ad46da-556d-4c61-9d9a-ef85ba7b4053"));
$this->assertTrue($uuidRegex->parseParam("00000000-0000-0000-0000-000000000000"));
$this->assertFalse($uuidRegex->parseParam("e3ad46da-556d-4c61-9d9a-ef85ba7b4053123"));
$this->assertFalse($uuidRegex->parseParam("e3ad46da-556d-4c61-9d9a-ef85ba7"));
$this->assertFalse($uuidRegex->parseParam("not-a-valid-uuid"));
}
}