Skip to content

Commit

Permalink
[5.x] Fix incorrect namespaces in tests (#11149)
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean authored Nov 21, 2024
1 parent 7ad5877 commit 37c3787
Show file tree
Hide file tree
Showing 15 changed files with 23 additions and 10 deletions.
2 changes: 2 additions & 0 deletions tests/Antlers/Runtime/ArithmeticTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

namespace Tests\Antlers\Runtime;

use Tests\Antlers\ParserTestCase;

class ArithmeticTest extends ParserTestCase
Expand Down
3 changes: 1 addition & 2 deletions tests/Console/Commands/MakeDictionaryTest.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<?php

namespace Console\Commands;
namespace Tests\Console\Commands;

use Facades\Statamic\Console\Processes\Composer;
use Illuminate\Filesystem\Filesystem;
use PHPUnit\Framework\Attributes\Test;
use Tests\Console\Commands\Concerns;
use Tests\TestCase;

class MakeDictionaryTest extends TestCase
Expand Down
2 changes: 1 addition & 1 deletion tests/Extend/AddonTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Statamic\Testing\Extend;
namespace Tests\Extend;

use Facades\Statamic\Licensing\LicenseManager;
use Foo\Bar\TestAddonServiceProvider;
Expand Down
3 changes: 1 addition & 2 deletions tests/Feature/GraphQL/Fieldtypes/DictionaryFieldtypeTest.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<?php

namespace Feature\GraphQL\Fieldtypes;
namespace Tests\Feature\GraphQL\Fieldtypes;

use Illuminate\Support\Carbon;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Test;
use Tests\Feature\GraphQL\Fieldtypes\FieldtypeTestCase;

#[Group('graphql')]
class DictionaryFieldtypeTest extends FieldtypeTestCase
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/SlugTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Feature;
namespace Tests\Feature;

use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Test;
Expand Down
2 changes: 2 additions & 0 deletions tests/Feature/Taxonomies/UpdateTermTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

namespace Tests\Feature\Taxonomies;

use PHPUnit\Framework\Attributes\Test;
use Statamic\Facades\Taxonomy;
use Statamic\Facades\Term;
Expand Down
2 changes: 2 additions & 0 deletions tests/Feature/Users/UpdateUserTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

namespace Tests\Feature\Users;

use PHPUnit\Framework\Attributes\Test;
use Statamic\Facades\User;
use Tests\FakesRoles;
Expand Down
2 changes: 1 addition & 1 deletion tests/Fieldtypes/ArrayTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Fieldtypes;
namespace Tests\Fieldtypes;

use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Test;
Expand Down
2 changes: 1 addition & 1 deletion tests/Modifiers/ToJsonTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Modifiers;
namespace Tests\Modifiers;

use Facades\Tests\Factories\EntryFactory;
use PHPUnit\Framework\Attributes\DataProvider;
Expand Down
2 changes: 1 addition & 1 deletion tests/Modifiers/ToQsTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Modifiers;
namespace Tests\Modifiers;

use PHPUnit\Framework\Attributes\Test;
use Statamic\Modifiers\Modify;
Expand Down
2 changes: 1 addition & 1 deletion tests/Modifiers/WhereInTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Modifiers;
namespace Tests\Modifiers;

use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Test;
Expand Down
3 changes: 3 additions & 0 deletions tests/Routing/RouteBindingTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?php

namespace Tests\Routing;

use Closure;
use Facades\Tests\Factories\EntryFactory;
use Illuminate\Contracts\Routing\BindingRegistrar;
use Illuminate\Routing\Middleware\SubstituteBindings;
Expand Down
2 changes: 2 additions & 0 deletions tests/Validation/UniqueEntryValueTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

namespace Tests\Validation;

use Facades\Tests\Factories\EntryFactory;
use Illuminate\Support\Facades\Validator;
use PHPUnit\Framework\Attributes\Test;
Expand Down
2 changes: 2 additions & 0 deletions tests/Validation/UniqueTermValueTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

namespace Tests\Validation;

use Illuminate\Support\Facades\Validator;
use PHPUnit\Framework\Attributes\Test;
use Statamic\Facades\Taxonomy;
Expand Down
2 changes: 2 additions & 0 deletions tests/Validation/UniqueUserValueTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

namespace Tests\Validation;

use Illuminate\Support\Facades\Validator;
use PHPUnit\Framework\Attributes\Test;
use Statamic\Facades\User;
Expand Down

0 comments on commit 37c3787

Please sign in to comment.