* [MOD] Use static types.

* [MOD] CORS headers.
* [MOD] Improve Forwarded header lookup.
* [ADD] Create interface for configuration data.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2021-10-12 20:49:18 +02:00
parent 5424084a52
commit 58249da565
638 changed files with 21764 additions and 22315 deletions

View File

@@ -290,11 +290,11 @@ class ClientRepositoryTest extends DatabaseTestCase
* @throws ConstraintException
* @throws QueryException
*/
public function testGetByIdBatch()
public function testGetByIdBatch(): void
{
$this->assertCount(3, self::$repository->getByIdBatch([1, 2, 3]));
$this->assertCount(4, self::$repository->getByIdBatch([1, 2, 3, 4, 5]));
$this->assertCount(0, self::$repository->getByIdBatch([]));
$this->assertCount(3, self::$repository->getByIdBatch([1, 2, 3])->getDataAsArray());
$this->assertCount(4, self::$repository->getByIdBatch([1, 2, 3, 4, 5])->getDataAsArray());
$this->assertCount(0, self::$repository->getByIdBatch([])->getDataAsArray());
}
/**