1
0
mirror of https://github.com/flarum/core.git synced 2025-08-09 01:46:35 +02:00

chore: update dependencies (#4012)

* chore: phpunit 10

* chore: config

* Apply fixes from StyleCI

* chore: phpunit 11 (php 8.2 minimum requirement)

* feat: laravel 11

* Apply fixes from StyleCI

* feat: carbon v3

* fixes
This commit is contained in:
Sami Mazouz
2024-08-06 16:50:09 +01:00
committed by GitHub
parent 2f92a6c739
commit 6b336c5ea8
205 changed files with 1176 additions and 2361 deletions

View File

@@ -18,6 +18,8 @@ use Flarum\Testing\integration\RetrievesAuthorizedUsers;
use Flarum\Testing\integration\TestCase;
use Flarum\User\User;
use Illuminate\Support\Arr;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Test;
class IncludeFlagsVisibilityTest extends TestCase
{
@@ -106,10 +108,8 @@ class IncludeFlagsVisibilityTest extends TestCase
]);
}
/**
* @dataProvider listFlagsIncludesDataProvider
* @test
*/
#[Test]
#[DataProvider('listFlagsIncludesDataProvider')]
public function user_sees_where_allowed_with_included_tags(int $actorId, array $expectedIncludes)
{
$response = $this->send(
@@ -137,7 +137,7 @@ class IncludeFlagsVisibilityTest extends TestCase
);
}
public function listFlagsIncludesDataProvider(): array
public static function listFlagsIncludesDataProvider(): array
{
return [
'admin_sees_all' => [1, [1, 2, 3, 4, 5, 6, 7, 8]],