Skip to content

Commit

Permalink
replace @group
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell committed Jun 21, 2024
1 parent 3fb4084 commit 6f0d0f6
Show file tree
Hide file tree
Showing 100 changed files with 208 additions and 181 deletions.
3 changes: 2 additions & 1 deletion tests/Auth/EloquentUserRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

namespace Tests\Auth;

use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Test;
use Statamic\Facades\User;
use Tests\TestCase;

/** @group user-repo */
#[Group('user-repo')]
class EloquentUserRepositoryTest extends TestCase
{
use UserRepositoryTests;
Expand Down
3 changes: 2 additions & 1 deletion tests/Auth/FileUserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Tests\Auth;

use Illuminate\Support\Facades\Hash;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Test;
use Statamic\Auth\File\User;
use Statamic\Contracts\Auth\Role as RoleContract;
Expand All @@ -13,7 +14,7 @@
use Tests\PreventSavingStacheItemsToDisk;
use Tests\TestCase;

/** @group user */
#[Group('user')]
class FileUserTest extends TestCase
{
use PermissibleContractTests, PreventSavingStacheItemsToDisk, UserContractTests;
Expand Down
3 changes: 2 additions & 1 deletion tests/Auth/StacheUserRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

namespace Tests\Auth;

use PHPUnit\Framework\Attributes\Group;
use Statamic\Auth\File\User;
use Tests\PreventSavingStacheItemsToDisk;
use Tests\TestCase;

/** @group user-repo */
#[Group('user-repo')]
class StacheUserRepositoryTest extends TestCase
{
use PreventSavingStacheItemsToDisk;
Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/GraphQL/AssetContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
namespace Tests\Feature\GraphQL;

use Facades\Statamic\API\ResourceAuthorizer;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Test;
use Statamic\Facades\AssetContainer;
use Tests\PreventSavingStacheItemsToDisk;
use Tests\TestCase;

/** @group graphql */
#[Group('graphql')]
class AssetContainerTest extends TestCase
{
use EnablesQueries;
Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/GraphQL/AssetContainersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
namespace Tests\Feature\GraphQL;

use Facades\Statamic\API\ResourceAuthorizer;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Test;
use Statamic\Facades\AssetContainer;
use Tests\PreventSavingStacheItemsToDisk;
use Tests\TestCase;

/** @group graphql */
#[Group('graphql')]
class AssetContainersTest extends TestCase
{
use EnablesQueries;
Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/GraphQL/AssetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\Storage;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Test;
use Statamic\Facades\AssetContainer;
use Statamic\Facades\Blueprint;
use Statamic\Facades\GraphQL;
use Tests\PreventSavingStacheItemsToDisk;
use Tests\TestCase;

/** @group graphql */
#[Group('graphql')]
class AssetTest extends TestCase
{
use EnablesQueries;
Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/GraphQL/AssetsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
use Facades\Statamic\API\ResourceAuthorizer;
use Facades\Statamic\Fields\BlueprintRepository;
use Illuminate\Support\Facades\Storage;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Test;
use Statamic\Facades\AssetContainer;
use Statamic\Facades\Blueprint;
use Statamic\Facades\YAML;
use Tests\PreventSavingStacheItemsToDisk;
use Tests\TestCase;

/** @group graphql */
#[Group('graphql')]
class AssetsTest extends TestCase
{
use EnablesQueries;
Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/GraphQL/CollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Facades\Statamic\API\ResourceAuthorizer;
use Facades\Statamic\Fields\BlueprintRepository;
use Facades\Tests\Factories\EntryFactory;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Test;
use Statamic\Facades\Blueprint;
use Statamic\Facades\Collection;
Expand All @@ -13,7 +14,7 @@
use Tests\PreventSavingStacheItemsToDisk;
use Tests\TestCase;

/** @group graphql */
#[Group('graphql')]
class CollectionTest extends TestCase
{
use EnablesQueries;
Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/GraphQL/CollectionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
namespace Tests\Feature\GraphQL;

use Facades\Statamic\API\ResourceAuthorizer;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Test;
use Statamic\Facades\Collection;
use Tests\PreventSavingStacheItemsToDisk;
use Tests\TestCase;

/** @group graphql */
#[Group('graphql')]
class CollectionsTest extends TestCase
{
use EnablesQueries;
Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/GraphQL/CustomMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

namespace Tests\Feature\GraphQL;

use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Test;
use Statamic\Facades\GraphQL;
use Tests\TestCase;

/** @group graphql */
#[Group('graphql')]
class CustomMiddlewareTest extends TestCase
{
public function setUp(): void
Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/GraphQL/CustomQueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
namespace Tests\Feature\GraphQL;

use GraphQL\Type\Definition\Type;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Test;
use Statamic\Facades\GraphQL;
use Statamic\GraphQL\Queries\Query;
use Tests\TestCase;

/** @group graphql */
#[Group('graphql')]
class CustomQueryTest extends TestCase
{
#[Test]
Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/GraphQL/DisablesRoutesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

namespace Tests\Feature\GraphQL;

use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;

/** @group graphql */
#[Group('graphql')]
class DisablesRoutesTest extends TestCase
{
protected function getEnvironmentSetUp($app)
Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/GraphQL/EntriesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
use Facades\Statamic\API\ResourceAuthorizer;
use Facades\Statamic\Fields\BlueprintRepository;
use Facades\Tests\Factories\EntryFactory;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Test;
use Statamic\Facades\Blueprint;
use Statamic\Facades\Collection;
use Statamic\Facades\Entry;
use Tests\PreventSavingStacheItemsToDisk;
use Tests\TestCase;

/** @group graphql */
#[Group('graphql')]
class EntriesTest extends TestCase
{
use CreatesQueryableTestEntries;
Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/GraphQL/EntryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
use Facades\Statamic\Fields\BlueprintRepository;
use Facades\Tests\Factories\EntryFactory;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Test;
use Statamic\Facades\Collection;
use Statamic\Facades\GraphQL;
use Statamic\Structures\CollectionStructure;
use Tests\PreventSavingStacheItemsToDisk;
use Tests\TestCase;

/** @group graphql */
#[Group('graphql')]
class EntryTest extends TestCase
{
use CreatesQueryableTestEntries;
Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/GraphQL/Fieldtypes/ArrFieldtypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

namespace Tests\Feature\GraphQL\Fieldtypes;

use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Test;

/** @group graphql */
#[Group('graphql')]
class ArrFieldtypeTest extends FieldtypeTestCase
{
#[Test]
Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/GraphQL/Fieldtypes/AssetsFieldtypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
use Facades\Statamic\Fields\BlueprintRepository;
use Facades\Tests\Factories\EntryFactory;
use Illuminate\Support\Facades\Storage;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Test;
use Statamic\Facades\AssetContainer;
use Statamic\Facades\Blueprint;
use Tests\Feature\GraphQL\EnablesQueries;
use Tests\PreventSavingStacheItemsToDisk;
use Tests\TestCase;

/** @group graphql */
#[Group('graphql')]
class AssetsFieldtypeTest extends TestCase
{
use EnablesQueries;
Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/GraphQL/Fieldtypes/BardFieldtypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
use Facades\Statamic\Fields\BlueprintRepository;
use Facades\Tests\Factories\EntryFactory;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Test;
use Statamic\Facades\Blueprint;
use Tests\Feature\GraphQL\EnablesQueries;
use Tests\PreventSavingStacheItemsToDisk;
use Tests\TestCase;

/** @group graphql */
#[Group('graphql')]
class BardFieldtypeTest extends TestCase
{
use EnablesQueries;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

namespace Tests\Feature\GraphQL\Fieldtypes;

use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Test;

/** @group graphql */
#[Group('graphql')]
class ButtonGroupFieldtypeTest extends FieldtypeTestCase
{
#[Test]
Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/GraphQL/Fieldtypes/CheckboxesFieldtypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

namespace Tests\Feature\GraphQL\Fieldtypes;

use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Test;

/** @group graphql */
#[Group('graphql')]
class CheckboxesFieldtypeTest extends FieldtypeTestCase
{
#[Test]
Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/GraphQL/Fieldtypes/CodeFieldtypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

namespace Tests\Feature\GraphQL\Fieldtypes;

use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Test;

/** @group graphql */
#[Group('graphql')]
class CodeFieldtypeTest extends FieldtypeTestCase
{
#[Test]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@

use Facades\Statamic\Fields\BlueprintRepository;
use Facades\Tests\Factories\EntryFactory;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Test;
use Statamic\Facades\Blueprint;
use Statamic\Facades\Collection;
use Tests\Feature\GraphQL\EnablesQueries;
use Tests\PreventSavingStacheItemsToDisk;
use Tests\TestCase;

/** @group graphql */
#[Group('graphql')]
class CollectionsFieldtypeTest extends TestCase
{
use EnablesQueries;
Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/GraphQL/Fieldtypes/DateFieldtypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
namespace Tests\Feature\GraphQL\Fieldtypes;

use Illuminate\Support\Carbon;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Test;

/** @group graphql */
#[Group('graphql')]
class DateFieldtypeTest extends FieldtypeTestCase
{
public function setUp(): void
Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/GraphQL/Fieldtypes/EntriesFieldtypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@

use Facades\Statamic\Fields\BlueprintRepository;
use Facades\Tests\Factories\EntryFactory;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Test;
use Statamic\Facades\Blueprint;
use Tests\Feature\GraphQL\EnablesQueries;
use Tests\PreventSavingStacheItemsToDisk;
use Tests\TestCase;

/** @group graphql */
#[Group('graphql')]
class EntriesFieldtypeTest extends TestCase
{
use EnablesQueries;
Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/GraphQL/Fieldtypes/GridFieldtypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@

use Facades\Statamic\Fields\BlueprintRepository;
use Facades\Tests\Factories\EntryFactory;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Test;
use Statamic\Facades\Blueprint;
use Tests\Feature\GraphQL\EnablesQueries;
use Tests\PreventSavingStacheItemsToDisk;
use Tests\TestCase;

/** @group graphql */
#[Group('graphql')]
class GridFieldtypeTest extends TestCase
{
use EnablesQueries;
Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/GraphQL/Fieldtypes/IntegerFieldtypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

namespace Tests\Feature\GraphQL\Fieldtypes;

use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Test;

/** @group graphql */
#[Group('graphql')]
class IntegerFieldtypeTest extends FieldtypeTestCase
{
#[Test]
Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/GraphQL/Fieldtypes/LinkFieldtypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@

use Facades\Statamic\Routing\ResolveRedirect;
use Mockery;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Test;
use Statamic\Contracts\Entries\Entry;

/** @group graphql */
#[Group('graphql')]
class LinkFieldtypeTest extends FieldtypeTestCase
{
#[Test]
Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/GraphQL/Fieldtypes/ListFieldtypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

namespace Tests\Feature\GraphQL\Fieldtypes;

use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Test;

/** @group graphql */
#[Group('graphql')]
class ListFieldtypeTest extends FieldtypeTestCase
{
#[Test]
Expand Down
Loading

0 comments on commit 6f0d0f6

Please sign in to comment.