From df1aabd3046aa1f8b3ff3c3c6435b73706723892 Mon Sep 17 00:00:00 2001 From: Philipp Date: Sun, 5 Dec 2021 00:19:24 +0100 Subject: [PATCH] Fix dataset --- tests/datasets/api.fixture.php | 4 ++-- tests/legacy/ApiTest.php | 7 ------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/tests/datasets/api.fixture.php b/tests/datasets/api.fixture.php index e85313ca61..a8705696f2 100644 --- a/tests/datasets/api.fixture.php +++ b/tests/datasets/api.fixture.php @@ -221,12 +221,12 @@ return [ 'location' => 'DFRN', ], [ - 'id' => 42, + 'id' => 48, 'uid' => 0, 'uri-id' => 42, 'name' => 'Self contact', 'nick' => 'selfcontact', - 'self' => 1, + 'self' => 0, 'nurl' => 'http://localhost/profile/selfcontact', 'url' => 'http://localhost/profile/selfcontact', 'about' => 'User used in tests', diff --git a/tests/legacy/ApiTest.php b/tests/legacy/ApiTest.php index eb5394ec9e..2067a35362 100644 --- a/tests/legacy/ApiTest.php +++ b/tests/legacy/ApiTest.php @@ -6,21 +6,14 @@ namespace Friendica\Test\legacy; use Friendica\App; -use Friendica\App\Router; use Friendica\Core\Config\Capability\IManageConfigValues; -use Friendica\Core\PConfig\Capability\IManagePersonalConfigValues; -use Friendica\Core\Protocol; use Friendica\DI; -use Friendica\Model\Post; use Friendica\Module\Api\ApiResponse; -use Friendica\Module\Api\Twitter\Media\Upload; use Friendica\Module\BaseApi; -use Friendica\Network\HTTPException; use Friendica\Security\BasicAuth; use Friendica\Test\FixtureTest; use Friendica\Util\Arrays; use Friendica\Util\DateTimeFormat; -use Friendica\Util\Temporal; use Monolog\Handler\TestHandler; require_once __DIR__ . '/../../include/api.php';