Merge branch 'add-static-code-analysis' into refactoring-of-app-class

This commit is contained in:
Art4 2024-11-08 08:31:31 +00:00
commit bbf7d50295

View file

@ -5,7 +5,7 @@
// //
// SPDX-License-Identifier: AGPL-3.0-or-later // SPDX-License-Identifier: AGPL-3.0-or-later
namespace Friendica\Test\src\Object\Api\Mastodon; namespace Friendica\Test\Unit\Object\Api\Mastodon;
use Friendica\Object\Api\Mastodon\Preferences; use Friendica\Object\Api\Mastodon\Preferences;
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
@ -14,7 +14,7 @@ class PreferencesTest extends TestCase
{ {
public function testToArrayReturnsArray(): void public function testToArrayReturnsArray(): void
{ {
$preferences = new Preferences('visibility',true, 'language', 'media', false); $preferences = new Preferences('visibility', true, 'language', 'media', false);
self::assertSame( self::assertSame(
[ [
@ -30,7 +30,7 @@ class PreferencesTest extends TestCase
public function testJsonSerializeReturnsArray(): void public function testJsonSerializeReturnsArray(): void
{ {
$preferences = new Preferences('visibility',true, 'language', 'media', false); $preferences = new Preferences('visibility', true, 'language', 'media', false);
self::assertSame( self::assertSame(
[ [