diff --git a/cspell.json b/cspell.json index f35f7f2d2..33a26bae6 100644 --- a/cspell.json +++ b/cspell.json @@ -180,8 +180,8 @@ "config/secure-headers.php", "database/migrations/20{1,2{0,1,2,3,4}}*", "database/schema/mysql-schema.sql", - "database/seeders/DistributorsTableSeeder.php", - "database/seeders/MediaLanguagesSeeder.php", + "database/seeders/DistributorSeeder.php", + "database/seeders/MediaLanguageSeeder.php", "lang/", "public/vendor/livewire/livewire.js", "resources/js/unit3d/helper.js", diff --git a/database/seeders/AchievementDetailsTableSeeder.php b/database/seeders/AchievementDetailSeeder.php similarity index 99% rename from database/seeders/AchievementDetailsTableSeeder.php rename to database/seeders/AchievementDetailSeeder.php index 04b463734..533c066b4 100644 --- a/database/seeders/AchievementDetailsTableSeeder.php +++ b/database/seeders/AchievementDetailSeeder.php @@ -20,7 +20,7 @@ use Assada\Achievements\Model\AchievementDetails as AchievementDetail; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; -class AchievementDetailsTableSeeder extends Seeder +class AchievementDetailSeeder extends Seeder { public function run(): void { diff --git a/database/seeders/ArticlesTableSeeder.php b/database/seeders/ArticleSeeder.php similarity index 96% rename from database/seeders/ArticlesTableSeeder.php rename to database/seeders/ArticleSeeder.php index 54d362c88..dd375a6b4 100644 --- a/database/seeders/ArticlesTableSeeder.php +++ b/database/seeders/ArticleSeeder.php @@ -20,7 +20,7 @@ use App\Models\Article; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; -class ArticlesTableSeeder extends Seeder +class ArticleSeeder extends Seeder { public function run(): void { diff --git a/database/seeders/BonEarningConditionTableSeeder.php b/database/seeders/BonEarningConditionSeeder.php similarity index 99% rename from database/seeders/BonEarningConditionTableSeeder.php rename to database/seeders/BonEarningConditionSeeder.php index b2fe8e313..5bbbc1f4c 100644 --- a/database/seeders/BonEarningConditionTableSeeder.php +++ b/database/seeders/BonEarningConditionSeeder.php @@ -19,7 +19,7 @@ namespace Database\Seeders; use App\Models\BonEarningCondition; use Illuminate\Database\Seeder; -class BonEarningConditionTableSeeder extends Seeder +class BonEarningConditionSeeder extends Seeder { public function run(): void { diff --git a/database/seeders/BonEarningTableSeeder.php b/database/seeders/BonEarningSeeder.php similarity index 99% rename from database/seeders/BonEarningTableSeeder.php rename to database/seeders/BonEarningSeeder.php index dcf182e0a..5ab7ff044 100644 --- a/database/seeders/BonEarningTableSeeder.php +++ b/database/seeders/BonEarningSeeder.php @@ -19,7 +19,7 @@ namespace Database\Seeders; use App\Models\BonEarning; use Illuminate\Database\Seeder; -class BonEarningTableSeeder extends Seeder +class BonEarningSeeder extends Seeder { public function run(): void { diff --git a/database/seeders/BonExchangeTableSeeder.php b/database/seeders/BonExchangeSeeder.php similarity index 98% rename from database/seeders/BonExchangeTableSeeder.php rename to database/seeders/BonExchangeSeeder.php index f362a6387..a104e71a6 100644 --- a/database/seeders/BonExchangeTableSeeder.php +++ b/database/seeders/BonExchangeSeeder.php @@ -20,7 +20,7 @@ use App\Helpers\ByteUnits; use App\Models\BonExchange; use Illuminate\Database\Seeder; -class BonExchangeTableSeeder extends Seeder +class BonExchangeSeeder extends Seeder { public function run(ByteUnits $byteUnits): void { diff --git a/database/seeders/BotsTableSeeder.php b/database/seeders/BotSeeder.php similarity index 98% rename from database/seeders/BotsTableSeeder.php rename to database/seeders/BotSeeder.php index 3edb87ccc..8034754fd 100644 --- a/database/seeders/BotsTableSeeder.php +++ b/database/seeders/BotSeeder.php @@ -20,7 +20,7 @@ use App\Models\Bot; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; -class BotsTableSeeder extends Seeder +class BotSeeder extends Seeder { public function run(): void { @@ -37,7 +37,7 @@ class BotsTableSeeder extends Seeder All [b]echo[/b] commands begin with / and echo output to current tab. All [b]room[/b] commands begin with ! and echo output for all in current room. All [b]private[/b] commands begin with @ or are sent via the @{me} tab. If sent via @{me} tab, no (! | / | @){command} prefix is needed. - + Echo & Private commands: /msg [username] [message] - Send a quick private shoutbox message. /gift [username] [amount] [message] - Send a quick gift of [amount] to [username] with attached [message]. @@ -60,7 +60,7 @@ Available Bots: All [b]echo[/b] commands begin with / and echo output to current tab. All [b]room[/b] commands begin with ! and echo output for all in current room. All [b]private[/b] commands begin with @ or are sent via the @{me} tab. If sent via @{me} tab, no (! | / | @){command} prefix is needed. - + Public, Echo & Private commands: (! | / | @)nerdbot help - Displays this help file. diff --git a/database/seeders/CategoriesTableSeeder.php b/database/seeders/CategorySeeder.php similarity index 97% rename from database/seeders/CategoriesTableSeeder.php rename to database/seeders/CategorySeeder.php index 1cf7db9ed..87999bcad 100644 --- a/database/seeders/CategoriesTableSeeder.php +++ b/database/seeders/CategorySeeder.php @@ -19,7 +19,7 @@ namespace Database\Seeders; use App\Models\Category; use Illuminate\Database\Seeder; -class CategoriesTableSeeder extends Seeder +class CategorySeeder extends Seeder { public function run(): void { diff --git a/database/seeders/ChatroomTableSeeder.php b/database/seeders/ChatroomSeeder.php similarity index 94% rename from database/seeders/ChatroomTableSeeder.php rename to database/seeders/ChatroomSeeder.php index 488fd3e49..73b426fb7 100644 --- a/database/seeders/ChatroomTableSeeder.php +++ b/database/seeders/ChatroomSeeder.php @@ -20,7 +20,7 @@ use App\Models\Chatroom; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; -class ChatroomTableSeeder extends Seeder +class ChatroomSeeder extends Seeder { public function run(): void { diff --git a/database/seeders/DatabaseSeeder.php b/database/seeders/DatabaseSeeder.php index 06dfb7422..ae8f66770 100644 --- a/database/seeders/DatabaseSeeder.php +++ b/database/seeders/DatabaseSeeder.php @@ -26,28 +26,28 @@ class DatabaseSeeder extends Seeder public function run(): void { $this->call([ - GroupsTableSeeder::class, - UsersTableSeeder::class, - BonExchangeTableSeeder::class, - AchievementDetailsTableSeeder::class, - PagesTableSeeder::class, - CategoriesTableSeeder::class, - TypesTableSeeder::class, - ArticlesTableSeeder::class, - ForumsTableSeeder::class, - ForumPermissionsTableSeeder::class, - ChatroomTableSeeder::class, + GroupSeeder::class, + UserSeeder::class, + BonExchangeSeeder::class, + AchievementDetailSeeder::class, + PageSeeder::class, + CategorySeeder::class, + TypeSeeder::class, + ArticleSeeder::class, + ForumSeeder::class, + ForumPermissionSeeder::class, + ChatroomSeeder::class, ChatStatusSeeder::class, - BotsTableSeeder::class, - MediaLanguagesSeeder::class, - ResolutionsTableSeeder::class, - TicketCategoriesTableSeeder::class, - TicketPrioritiesTableSeeder::class, - DistributorsTableSeeder::class, - RegionsTableSeeder::class, + BotSeeder::class, + MediaLanguageSeeder::class, + ResolutionSeeder::class, + TicketCategorySeeder::class, + TicketPrioritySeeder::class, + DistributorSeeder::class, + RegionSeeder::class, OccupationSeeder::class, - BonEarningTableSeeder::class, - BonEarningConditionTableSeeder::class, + BonEarningSeeder::class, + BonEarningConditionSeeder::class, ]); } } diff --git a/database/seeders/DistributorsTableSeeder.php b/database/seeders/DistributorSeeder.php similarity index 99% rename from database/seeders/DistributorsTableSeeder.php rename to database/seeders/DistributorSeeder.php index 0c6a590bb..140d11117 100644 --- a/database/seeders/DistributorsTableSeeder.php +++ b/database/seeders/DistributorSeeder.php @@ -19,7 +19,7 @@ namespace Database\Seeders; use App\Models\Distributor; use Illuminate\Database\Seeder; -class DistributorsTableSeeder extends Seeder +class DistributorSeeder extends Seeder { public function run(): void { diff --git a/database/seeders/ForumPermissionsTableSeeder.php b/database/seeders/ForumPermissionSeeder.php similarity index 99% rename from database/seeders/ForumPermissionsTableSeeder.php rename to database/seeders/ForumPermissionSeeder.php index e626eb0d3..adb3055d5 100644 --- a/database/seeders/ForumPermissionsTableSeeder.php +++ b/database/seeders/ForumPermissionSeeder.php @@ -19,7 +19,7 @@ namespace Database\Seeders; use App\Models\ForumPermission; use Illuminate\Database\Seeder; -class ForumPermissionsTableSeeder extends Seeder +class ForumPermissionSeeder extends Seeder { public function run(): void { diff --git a/database/seeders/ForumsTableSeeder.php b/database/seeders/ForumSeeder.php similarity index 97% rename from database/seeders/ForumsTableSeeder.php rename to database/seeders/ForumSeeder.php index 961a03647..3ec7127ba 100644 --- a/database/seeders/ForumsTableSeeder.php +++ b/database/seeders/ForumSeeder.php @@ -21,7 +21,7 @@ use App\Models\ForumCategory; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; -class ForumsTableSeeder extends Seeder +class ForumSeeder extends Seeder { public function run(): void { diff --git a/database/seeders/GroupsTableSeeder.php b/database/seeders/GroupSeeder.php similarity index 99% rename from database/seeders/GroupsTableSeeder.php rename to database/seeders/GroupSeeder.php index 421d17ca5..cda7e6e6d 100644 --- a/database/seeders/GroupsTableSeeder.php +++ b/database/seeders/GroupSeeder.php @@ -19,7 +19,7 @@ namespace Database\Seeders; use App\Models\Group; use Illuminate\Database\Seeder; -class GroupsTableSeeder extends Seeder +class GroupSeeder extends Seeder { public function run(): void { diff --git a/database/seeders/MediaLanguagesSeeder.php b/database/seeders/MediaLanguageSeeder.php similarity index 99% rename from database/seeders/MediaLanguagesSeeder.php rename to database/seeders/MediaLanguageSeeder.php index 2a91e06a3..8e74ef0d9 100644 --- a/database/seeders/MediaLanguagesSeeder.php +++ b/database/seeders/MediaLanguageSeeder.php @@ -20,7 +20,7 @@ use App\Models\MediaLanguage; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; -class MediaLanguagesSeeder extends Seeder +class MediaLanguageSeeder extends Seeder { public function run(): void { diff --git a/database/seeders/PagesTableSeeder.php b/database/seeders/PageSeeder.php similarity index 99% rename from database/seeders/PagesTableSeeder.php rename to database/seeders/PageSeeder.php index 4b8f0e3b0..d8b29c65c 100644 --- a/database/seeders/PagesTableSeeder.php +++ b/database/seeders/PageSeeder.php @@ -22,7 +22,7 @@ use Illuminate\Support\Facades\DB; // cspell:ignore orwill -class PagesTableSeeder extends Seeder +class PageSeeder extends Seeder { public function run(): void { diff --git a/database/seeders/RegionsTableSeeder.php b/database/seeders/RegionSeeder.php similarity index 99% rename from database/seeders/RegionsTableSeeder.php rename to database/seeders/RegionSeeder.php index b30c9f12e..cb9f1f0b4 100644 --- a/database/seeders/RegionsTableSeeder.php +++ b/database/seeders/RegionSeeder.php @@ -19,7 +19,7 @@ namespace Database\Seeders; use App\Models\Region; use Illuminate\Database\Seeder; -class RegionsTableSeeder extends Seeder +class RegionSeeder extends Seeder { public function run(): void { diff --git a/database/seeders/ResolutionsTableSeeder.php b/database/seeders/ResolutionSeeder.php similarity index 97% rename from database/seeders/ResolutionsTableSeeder.php rename to database/seeders/ResolutionSeeder.php index fe8b754f9..b0eea17b5 100644 --- a/database/seeders/ResolutionsTableSeeder.php +++ b/database/seeders/ResolutionSeeder.php @@ -19,7 +19,7 @@ namespace Database\Seeders; use App\Models\Resolution; use Illuminate\Database\Seeder; -class ResolutionsTableSeeder extends Seeder +class ResolutionSeeder extends Seeder { public function run(): void { diff --git a/database/seeders/TicketCategoriesTableSeeder.php b/database/seeders/TicketCategorySeeder.php similarity index 97% rename from database/seeders/TicketCategoriesTableSeeder.php rename to database/seeders/TicketCategorySeeder.php index 0185633a5..4c44e7cdd 100644 --- a/database/seeders/TicketCategoriesTableSeeder.php +++ b/database/seeders/TicketCategorySeeder.php @@ -20,7 +20,7 @@ use App\Models\TicketCategory; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; -class TicketCategoriesTableSeeder extends Seeder +class TicketCategorySeeder extends Seeder { final public function run(): void { diff --git a/database/seeders/TicketPrioritiesTableSeeder.php b/database/seeders/TicketPrioritySeeder.php similarity index 95% rename from database/seeders/TicketPrioritiesTableSeeder.php rename to database/seeders/TicketPrioritySeeder.php index 17c400fbb..8ab5c2edf 100644 --- a/database/seeders/TicketPrioritiesTableSeeder.php +++ b/database/seeders/TicketPrioritySeeder.php @@ -20,7 +20,7 @@ use App\Models\TicketPriority; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; -class TicketPrioritiesTableSeeder extends Seeder +class TicketPrioritySeeder extends Seeder { final public function run(): void { diff --git a/database/seeders/TypesTableSeeder.php b/database/seeders/TypeSeeder.php similarity index 97% rename from database/seeders/TypesTableSeeder.php rename to database/seeders/TypeSeeder.php index 459b374f0..cd654f38b 100644 --- a/database/seeders/TypesTableSeeder.php +++ b/database/seeders/TypeSeeder.php @@ -19,7 +19,7 @@ namespace Database\Seeders; use App\Models\Type; use Illuminate\Database\Seeder; -class TypesTableSeeder extends Seeder +class TypeSeeder extends Seeder { public function run(): void { diff --git a/database/seeders/UsersTableSeeder.php b/database/seeders/UserSeeder.php similarity index 98% rename from database/seeders/UsersTableSeeder.php rename to database/seeders/UserSeeder.php index 419d88edb..7a78012f0 100644 --- a/database/seeders/UsersTableSeeder.php +++ b/database/seeders/UserSeeder.php @@ -22,7 +22,7 @@ use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Str; -class UsersTableSeeder extends Seeder +class UserSeeder extends Seeder { public function run(): void { diff --git a/tests/Feature/Actions/Fortify/CreateNewUserTest.php b/tests/Feature/Actions/Fortify/CreateNewUserTest.php index 5ce2605b9..8ce0b7627 100644 --- a/tests/Feature/Actions/Fortify/CreateNewUserTest.php +++ b/tests/Feature/Actions/Fortify/CreateNewUserTest.php @@ -15,7 +15,7 @@ declare(strict_types=1); */ use App\Models\Invite; -use Database\Seeders\GroupsTableSeeder; +use Database\Seeders\GroupSeeder; use Illuminate\Auth\Events\Registered; use Illuminate\Support\Facades\Event; @@ -24,7 +24,7 @@ use function Pest\Laravel\assertDatabaseMissing; use function Pest\Laravel\seed; beforeEach(function (): void { - seed(GroupsTableSeeder::class); + seed(GroupSeeder::class); Event::fake(Registered::class); }); diff --git a/tests/Feature/Http/Controllers/ContactControllerTest.php b/tests/Feature/Http/Controllers/ContactControllerTest.php index 645e87c21..17da7a68c 100644 --- a/tests/Feature/Http/Controllers/ContactControllerTest.php +++ b/tests/Feature/Http/Controllers/ContactControllerTest.php @@ -16,7 +16,7 @@ declare(strict_types=1); use App\Mail\Contact; use App\Models\User; -use Database\Seeders\UsersTableSeeder; +use Database\Seeders\UserSeeder; use Illuminate\Support\Facades\Mail; test('index returns an ok response', function (): void { @@ -28,7 +28,7 @@ test('index returns an ok response', function (): void { }); test('store returns an ok response', function (): void { - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); Mail::fake(); diff --git a/tests/Feature/Http/Controllers/ForumControllerTest.php b/tests/Feature/Http/Controllers/ForumControllerTest.php index f29ed5a20..7eac60009 100644 --- a/tests/Feature/Http/Controllers/ForumControllerTest.php +++ b/tests/Feature/Http/Controllers/ForumControllerTest.php @@ -17,8 +17,8 @@ declare(strict_types=1); use App\Models\Forum; use App\Models\ForumPermission; use App\Models\User; -use Database\Seeders\GroupsTableSeeder; -use Database\Seeders\UsersTableSeeder; +use Database\Seeders\GroupSeeder; +use Database\Seeders\UserSeeder; test('index returns an ok response', function (): void { $user = User::factory()->create(); @@ -33,8 +33,8 @@ test('index returns an ok response', function (): void { }); test('show returns an ok response', function (): void { - $this->seed(UsersTableSeeder::class); - $this->seed(GroupsTableSeeder::class); + $this->seed(UserSeeder::class); + $this->seed(GroupSeeder::class); $user = User::factory()->create(); diff --git a/tests/Feature/Http/Controllers/PlaylistControllerTest.php b/tests/Feature/Http/Controllers/PlaylistControllerTest.php index 7b523b835..9fc34bbd0 100644 --- a/tests/Feature/Http/Controllers/PlaylistControllerTest.php +++ b/tests/Feature/Http/Controllers/PlaylistControllerTest.php @@ -20,9 +20,9 @@ use App\Http\Requests\UpdatePlaylistRequest; use App\Models\Playlist; use App\Models\PlaylistCategory; use App\Models\User; -use Database\Seeders\BotsTableSeeder; -use Database\Seeders\ChatroomTableSeeder; -use Database\Seeders\UsersTableSeeder; +use Database\Seeders\BotSeeder; +use Database\Seeders\ChatroomSeeder; +use Database\Seeders\UserSeeder; use Illuminate\Http\UploadedFile; test('create returns an ok response', function (): void { @@ -121,9 +121,9 @@ test('store validates with a form request', function (): void { }); test('store returns an ok response', function (): void { - $this->seed(UsersTableSeeder::class); - $this->seed(ChatroomTableSeeder::class); - $this->seed(BotsTableSeeder::class); + $this->seed(UserSeeder::class); + $this->seed(ChatroomSeeder::class); + $this->seed(BotSeeder::class); $user = User::factory()->create(); $playlist = Playlist::factory()->make(); diff --git a/tests/Feature/Http/Controllers/Staff/BanControllerTest.php b/tests/Feature/Http/Controllers/Staff/BanControllerTest.php index bb02d65bb..49d3d61b6 100644 --- a/tests/Feature/Http/Controllers/Staff/BanControllerTest.php +++ b/tests/Feature/Http/Controllers/Staff/BanControllerTest.php @@ -17,7 +17,7 @@ declare(strict_types=1); use App\Http\Controllers\Staff\BanController; use App\Http\Requests\Staff\StoreBanRequest; use App\Models\User; -use Database\Seeders\GroupsTableSeeder; +use Database\Seeders\GroupSeeder; use Illuminate\Support\Facades\Auth; test('index returns an ok response', function (): void { @@ -36,7 +36,7 @@ test('store validates with a form request', function (): void { }); test('store returns an ok response', function (): void { - $this->seed(GroupsTableSeeder::class); + $this->seed(GroupSeeder::class); $user = User::factory()->create(); @@ -49,7 +49,7 @@ test('store returns an ok response', function (): void { }); test('store aborts with a 403', function (): void { - $this->seed(GroupsTableSeeder::class); + $this->seed(GroupSeeder::class); $user = User::factory()->create(); diff --git a/tests/Feature/Http/Controllers/Staff/ChatBotControllerTest.php b/tests/Feature/Http/Controllers/Staff/ChatBotControllerTest.php index 2c8f2754e..f7decddae 100644 --- a/tests/Feature/Http/Controllers/Staff/ChatBotControllerTest.php +++ b/tests/Feature/Http/Controllers/Staff/ChatBotControllerTest.php @@ -20,7 +20,7 @@ use App\Http\Requests\Staff\UpdateChatBotRequest; use App\Models\Bot; use App\Models\Group; use App\Models\User; -use Database\Seeders\GroupsTableSeeder; +use Database\Seeders\GroupSeeder; beforeEach(function (): void { $this->staffUser = User::factory()->create([ @@ -44,7 +44,7 @@ test('destroy returns an ok response', function (): void { }); test('destroy aborts with a 403', function (): void { - $this->seed(GroupsTableSeeder::class); + $this->seed(GroupSeeder::class); $user = User::factory()->create([ 'group_id' => UserGroup::USER->value, diff --git a/tests/Feature/Http/Controllers/Staff/ChatRoomControllerTest.php b/tests/Feature/Http/Controllers/Staff/ChatRoomControllerTest.php index eec15a29b..2a90c778d 100644 --- a/tests/Feature/Http/Controllers/Staff/ChatRoomControllerTest.php +++ b/tests/Feature/Http/Controllers/Staff/ChatRoomControllerTest.php @@ -20,7 +20,7 @@ use App\Http\Requests\Staff\UpdateChatRoomRequest; use App\Models\Chatroom; use App\Models\Group; use App\Models\User; -use Database\Seeders\ChatroomTableSeeder; +use Database\Seeders\ChatroomSeeder; beforeEach(function (): void { $this->staffUser = User::factory()->create([ @@ -39,7 +39,7 @@ test('create returns an ok response', function (): void { }); test('destroy returns an ok response', function (): void { - $this->seed(ChatroomTableSeeder::class); + $this->seed(ChatroomSeeder::class); $chatroom = Chatroom::factory()->create(); diff --git a/tests/Feature/Http/Controllers/Staff/CheaterControllerTest.php b/tests/Feature/Http/Controllers/Staff/CheaterControllerTest.php index 553b8342f..1f027ee0a 100644 --- a/tests/Feature/Http/Controllers/Staff/CheaterControllerTest.php +++ b/tests/Feature/Http/Controllers/Staff/CheaterControllerTest.php @@ -16,7 +16,7 @@ declare(strict_types=1); use App\Models\Group; use App\Models\User; -use Database\Seeders\GroupsTableSeeder; +use Database\Seeders\GroupSeeder; beforeEach(function (): void { $this->staffUser = User::factory()->create([ @@ -29,7 +29,7 @@ beforeEach(function (): void { }); test('index returns an ok response', function (): void { - $this->seed(GroupsTableSeeder::class); + $this->seed(GroupSeeder::class); $response = $this->actingAs($this->staffUser)->get(route('staff.cheaters.index')); $response->assertOk(); diff --git a/tests/Feature/Http/Controllers/Staff/HomeControllerTest.php b/tests/Feature/Http/Controllers/Staff/HomeControllerTest.php index 58990ad1c..4cdfb3d84 100644 --- a/tests/Feature/Http/Controllers/Staff/HomeControllerTest.php +++ b/tests/Feature/Http/Controllers/Staff/HomeControllerTest.php @@ -15,10 +15,10 @@ declare(strict_types=1); */ use App\Models\User; -use Database\Seeders\GroupsTableSeeder; +use Database\Seeders\GroupSeeder; test('index returns an ok response', function (): void { - $this->seed(GroupsTableSeeder::class); + $this->seed(GroupSeeder::class); $response = $this->get('/dashboard'); diff --git a/tests/Feature/Http/Controllers/Staff/MassActionControllerTest.php b/tests/Feature/Http/Controllers/Staff/MassActionControllerTest.php index c0492f541..65b480f86 100644 --- a/tests/Feature/Http/Controllers/Staff/MassActionControllerTest.php +++ b/tests/Feature/Http/Controllers/Staff/MassActionControllerTest.php @@ -16,10 +16,10 @@ declare(strict_types=1); use App\Models\Group; use App\Models\User; -use Database\Seeders\GroupsTableSeeder; +use Database\Seeders\GroupSeeder; test('update returns an ok response', function (): void { - $this->seed(GroupsTableSeeder::class); + $this->seed(GroupSeeder::class); User::factory()->times(3)->create([ 'email_verified_at' => null, 'group_id' => Group::firstWhere('slug', 'validating') diff --git a/tests/Feature/Http/Controllers/Staff/PageControllerTest.php b/tests/Feature/Http/Controllers/Staff/PageControllerTest.php index 7a5f5bf42..07047a68f 100644 --- a/tests/Feature/Http/Controllers/Staff/PageControllerTest.php +++ b/tests/Feature/Http/Controllers/Staff/PageControllerTest.php @@ -18,12 +18,12 @@ use App\Http\Controllers\Staff\PageController; use App\Http\Requests\Staff\StorePageRequest; use App\Http\Requests\Staff\UpdatePageRequest; use App\Models\Page; -use Database\Seeders\GroupsTableSeeder; +use Database\Seeders\GroupSeeder; use function Pest\Laravel\assertDatabaseHas; test('create returns an ok response', function (): void { - $this->seed(GroupsTableSeeder::class); + $this->seed(GroupSeeder::class); $this->get(route('staff.pages.create')) ->assertOk() diff --git a/tests/Feature/Http/Controllers/Staff/PollControllerTest.php b/tests/Feature/Http/Controllers/Staff/PollControllerTest.php index 14c1fc3d5..f8f6f0ad6 100644 --- a/tests/Feature/Http/Controllers/Staff/PollControllerTest.php +++ b/tests/Feature/Http/Controllers/Staff/PollControllerTest.php @@ -22,10 +22,10 @@ use App\Models\Chatroom; use App\Models\Group; use App\Models\Poll; use App\Models\User; -use Database\Seeders\UsersTableSeeder; +use Database\Seeders\UserSeeder; test('create a poll returns an ok response', function (): void { - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); // Poll chat announcements needs a system user, a bot and a chatroom $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -69,7 +69,7 @@ test('create a poll returns an ok response', function (): void { }); test('create a poll with expiration date returns an ok response', function (): void { - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); // Poll chat announcements needs a system user, a bot and a chatroom $bot = Bot::factory()->create([ 'command' => 'Systembot', diff --git a/tests/Feature/Http/Controllers/User/ApikeyControllerTest.php b/tests/Feature/Http/Controllers/User/ApikeyControllerTest.php index a7926bec6..5b799210e 100644 --- a/tests/Feature/Http/Controllers/User/ApikeyControllerTest.php +++ b/tests/Feature/Http/Controllers/User/ApikeyControllerTest.php @@ -16,7 +16,7 @@ declare(strict_types=1); use App\Enums\UserGroup; use App\Models\User; -use Database\Seeders\GroupsTableSeeder; +use Database\Seeders\GroupSeeder; use Illuminate\Support\Str; test('edit returns an ok response', function (): void { @@ -30,7 +30,7 @@ test('edit returns an ok response', function (): void { }); test('edit aborts with a 403', function (): void { - $this->seed(GroupsTableSeeder::class); + $this->seed(GroupSeeder::class); $staffUser = User::factory()->create([ 'group_id' => UserGroup::MODERATOR->value, @@ -57,7 +57,7 @@ test('update returns an ok response', function (): void { }); test('update aborts with a 403', function (): void { - $this->seed(GroupsTableSeeder::class); + $this->seed(GroupSeeder::class); $staffUser = User::factory()->create([ 'group_id' => UserGroup::MODERATOR->value, diff --git a/tests/Feature/Http/Controllers/User/EarningControllerTest.php b/tests/Feature/Http/Controllers/User/EarningControllerTest.php index b5bcec10a..25d7e9142 100644 --- a/tests/Feature/Http/Controllers/User/EarningControllerTest.php +++ b/tests/Feature/Http/Controllers/User/EarningControllerTest.php @@ -16,7 +16,7 @@ declare(strict_types=1); use App\Enums\UserGroup; use App\Models\User; -use Database\Seeders\GroupsTableSeeder; +use Database\Seeders\GroupSeeder; test('index returns an ok response', function (): void { $user = User::factory()->create(); @@ -29,7 +29,7 @@ test('index returns an ok response', function (): void { }); test('index aborts with a 403', function (): void { - $this->seed(GroupsTableSeeder::class); + $this->seed(GroupSeeder::class); $user = User::factory()->create([ 'group_id' => UserGroup::MODERATOR->value, diff --git a/tests/Feature/Http/Controllers/User/EmailControllerTest.php b/tests/Feature/Http/Controllers/User/EmailControllerTest.php index fa43a22e7..1f673ab14 100644 --- a/tests/Feature/Http/Controllers/User/EmailControllerTest.php +++ b/tests/Feature/Http/Controllers/User/EmailControllerTest.php @@ -16,7 +16,7 @@ declare(strict_types=1); use App\Enums\UserGroup; use App\Models\User; -use Database\Seeders\GroupsTableSeeder; +use Database\Seeders\GroupSeeder; test('edit returns an ok response', function (): void { $user = User::factory()->create(); @@ -29,7 +29,7 @@ test('edit returns an ok response', function (): void { }); test('edit aborts with a 403', function (): void { - $this->seed(GroupsTableSeeder::class); + $this->seed(GroupSeeder::class); $user = User::factory()->create([ 'group_id' => UserGroup::MODERATOR->value, @@ -56,7 +56,7 @@ test('update returns an ok response', function (): void { }); test('update aborts with a 403', function (): void { - $this->seed(GroupsTableSeeder::class); + $this->seed(GroupSeeder::class); $user = User::factory()->create([ 'group_id' => UserGroup::MODERATOR->value, diff --git a/tests/Feature/Http/Controllers/User/FollowControllerTest.php b/tests/Feature/Http/Controllers/User/FollowControllerTest.php index 77ad2009f..3ec18516f 100644 --- a/tests/Feature/Http/Controllers/User/FollowControllerTest.php +++ b/tests/Feature/Http/Controllers/User/FollowControllerTest.php @@ -15,12 +15,12 @@ declare(strict_types=1); */ use App\Models\User; -use Database\Seeders\GroupsTableSeeder; -use Database\Seeders\UsersTableSeeder; +use Database\Seeders\GroupSeeder; +use Database\Seeders\UserSeeder; test('destroy returns an ok response', function (): void { - $this->seed(UsersTableSeeder::class); - $this->seed(GroupsTableSeeder::class); + $this->seed(UserSeeder::class); + $this->seed(GroupSeeder::class); $user = User::factory()->create(); $userToFollow = User::factory()->create(); @@ -46,8 +46,8 @@ test('index returns an ok response', function (): void { }); test('store returns an ok response', function (): void { - $this->seed(UsersTableSeeder::class); - $this->seed(GroupsTableSeeder::class); + $this->seed(UserSeeder::class); + $this->seed(GroupSeeder::class); $user = User::factory()->create(); $userToFollow = User::factory()->create(); diff --git a/tests/Feature/Notifications/NewBonNotificationTest.php b/tests/Feature/Notifications/NewBonNotificationTest.php index 0bb28e36a..b7dddd55c 100644 --- a/tests/Feature/Notifications/NewBonNotificationTest.php +++ b/tests/Feature/Notifications/NewBonNotificationTest.php @@ -20,7 +20,7 @@ use App\Models\Group; use App\Models\User; use App\Models\UserNotification; use App\Notifications\NewBon; -use Database\Seeders\UsersTableSeeder; +use Database\Seeders\UserSeeder; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Support\Facades\Notification; @@ -28,7 +28,7 @@ uses(RefreshDatabase::class); test('gift a user creates a notification for the gifted user', function (): void { // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -73,7 +73,7 @@ test('gift a user creates a notification for the gifted user', function (): void test('gift a user creates a notification for the gifted user when gift notifications are not disabled for specific group', function (): void { // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -125,7 +125,7 @@ test('gift a user creates a notification for the gifted user when gift notificat test('staff gifts a user creates a notification for the gifted user even when gift notifications are disabled', function (): void { // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -177,7 +177,7 @@ test('staff gifts a user creates a notification for the gifted user even when gi test('gift a user does not create a notification for the gifted user when all notifications disabled', function (): void { // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -218,7 +218,7 @@ test('gift a user does not create a notification for the gifted user when all no test('gift a user does not create a notification for the gifted user when gift notifications are disabled', function (): void { // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -259,7 +259,7 @@ test('gift a user does not create a notification for the gifted user when gift n test('gift a user does not create a notification for the gifted user when gift notifications are disabled for specific group', function (): void { // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', diff --git a/tests/Feature/Notifications/NewCommentArticleNotificationTest.php b/tests/Feature/Notifications/NewCommentArticleNotificationTest.php index 601c75931..57c65e183 100644 --- a/tests/Feature/Notifications/NewCommentArticleNotificationTest.php +++ b/tests/Feature/Notifications/NewCommentArticleNotificationTest.php @@ -33,7 +33,7 @@ test('user comments on article creates a notification for staff', function (): v Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -86,7 +86,7 @@ test('staff comments on own article does not create a notification for staff', f Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -128,7 +128,7 @@ test('user comments on article does not a notification for staff user when all n Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', diff --git a/tests/Feature/Notifications/NewCommentArticleTagNotificationTest.php b/tests/Feature/Notifications/NewCommentArticleTagNotificationTest.php index d55f23dfe..b825e2c4f 100644 --- a/tests/Feature/Notifications/NewCommentArticleTagNotificationTest.php +++ b/tests/Feature/Notifications/NewCommentArticleTagNotificationTest.php @@ -33,7 +33,7 @@ test('user tags user on article creates a notification for tagged user', functio Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -86,7 +86,7 @@ test('staff tags user on article creates a notification for tagged user even whe Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -142,7 +142,7 @@ test('user tags user on article creates a notification for tagged user when ment Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -197,7 +197,7 @@ test('user tags user on article does not create a notification for tagged user w Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -248,7 +248,7 @@ test('user tags user on article does not create a notification for tagged user w Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -299,7 +299,7 @@ test('user tags user on article does not create a notification for tagged user w Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', diff --git a/tests/Feature/Notifications/NewCommentPlaylistNotificationTest.php b/tests/Feature/Notifications/NewCommentPlaylistNotificationTest.php index 0491a747f..96e87ab77 100644 --- a/tests/Feature/Notifications/NewCommentPlaylistNotificationTest.php +++ b/tests/Feature/Notifications/NewCommentPlaylistNotificationTest.php @@ -33,7 +33,7 @@ test('comments on playlist creates a notification for playlist owner', function Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -82,7 +82,7 @@ test('user comments on own playlist does not create a notification for self', fu Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -123,7 +123,7 @@ test('comments on playlist does not create a notification for playlist owner whe Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', diff --git a/tests/Feature/Notifications/NewCommentRequestNotificationTest.php b/tests/Feature/Notifications/NewCommentRequestNotificationTest.php index a7703d1ae..8ee8aa80b 100644 --- a/tests/Feature/Notifications/NewCommentRequestNotificationTest.php +++ b/tests/Feature/Notifications/NewCommentRequestNotificationTest.php @@ -33,7 +33,7 @@ test('comment own request does not create a notification for self', function (): Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -77,7 +77,7 @@ test('comment a request creates a notification for the requester', function (): Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -130,7 +130,7 @@ test('comment a request creates a notification for the requester when request co Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -185,7 +185,7 @@ test('comment a request creates a notification for the requester when all notifi Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -234,7 +234,7 @@ test('comment a request creates a notification for the requester when request co Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -283,7 +283,7 @@ test('comment a request creates a notification for the requester when request co Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', diff --git a/tests/Feature/Notifications/NewCommentTicketNotificationTest.php b/tests/Feature/Notifications/NewCommentTicketNotificationTest.php index c180170f8..98635f65c 100644 --- a/tests/Feature/Notifications/NewCommentTicketNotificationTest.php +++ b/tests/Feature/Notifications/NewCommentTicketNotificationTest.php @@ -33,7 +33,7 @@ test('user comments own ticket does not create a notification for self but assig Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -92,7 +92,7 @@ test('user comments own ticket does not create a notification for staff when non Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -143,7 +143,7 @@ test('staff comments a ticket creates a notification for the user but not staff' Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -198,7 +198,7 @@ test('staff comments a ticket create a notification for the user even when all n Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', diff --git a/tests/Feature/Notifications/NewCommentTicketTagNotificationTest.php b/tests/Feature/Notifications/NewCommentTicketTagNotificationTest.php index f19ce64f8..8a75ab956 100644 --- a/tests/Feature/Notifications/NewCommentTicketTagNotificationTest.php +++ b/tests/Feature/Notifications/NewCommentTicketTagNotificationTest.php @@ -33,7 +33,7 @@ test('user tags user on ticket creates a notification for tagged user', function Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -89,7 +89,7 @@ test('user tags user on ticket does not create a notification for tagged user wh Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', diff --git a/tests/Feature/Notifications/NewCommentTorrentNotificationTest.php b/tests/Feature/Notifications/NewCommentTorrentNotificationTest.php index 4556375bc..7c16b84c1 100644 --- a/tests/Feature/Notifications/NewCommentTorrentNotificationTest.php +++ b/tests/Feature/Notifications/NewCommentTorrentNotificationTest.php @@ -33,7 +33,7 @@ test('comment own torrent does not create a notification for self', function (): Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -77,7 +77,7 @@ test('comment a torrent creates a notification for the uploader', function (): v Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -130,7 +130,7 @@ test('comment a torrent creates a notification for the requester when request co Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -185,7 +185,7 @@ test('comment a torrent creates a notification for the requester when all notifi Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -234,7 +234,7 @@ test('comment a torrent creates a notification for the requester when request co Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -283,7 +283,7 @@ test('comment a torrent creates a notification for the requester when request co Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', diff --git a/tests/Feature/Notifications/NewCommentTorrentRequestTagNotificationTest.php b/tests/Feature/Notifications/NewCommentTorrentRequestTagNotificationTest.php index cf131237f..7b78d7d2d 100644 --- a/tests/Feature/Notifications/NewCommentTorrentRequestTagNotificationTest.php +++ b/tests/Feature/Notifications/NewCommentTorrentRequestTagNotificationTest.php @@ -33,7 +33,7 @@ test('user tags user on request creates a notification for tagged user', functio Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -85,7 +85,7 @@ test('user tags user on request creates a notification for tagged user when ment Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -139,7 +139,7 @@ test('user tags user on request does not create a notification for tagged user w Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -190,7 +190,7 @@ test('user tags user on request does not create a notification for tagged user w Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -241,7 +241,7 @@ test('user tags user on request does not create a notification for tagged user w Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', diff --git a/tests/Feature/Notifications/NewCommentTorrentTagNotificationTest.php b/tests/Feature/Notifications/NewCommentTorrentTagNotificationTest.php index f42b182a3..ce834feeb 100644 --- a/tests/Feature/Notifications/NewCommentTorrentTagNotificationTest.php +++ b/tests/Feature/Notifications/NewCommentTorrentTagNotificationTest.php @@ -33,7 +33,7 @@ test('user tags user on torrent creates a notification for tagged user', functio Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -85,7 +85,7 @@ test('user tags user on torrent creates a notification for tagged user when ment Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -139,7 +139,7 @@ test('user tags user on torrent does not create a notification for tagged user w Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -190,7 +190,7 @@ test('user tags user on torrent does not create a notification for tagged user w Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -241,7 +241,7 @@ test('user tags user on torrent does not create a notification for tagged user w Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', diff --git a/tests/Feature/Notifications/NewPostCreatorNotificationTest.php b/tests/Feature/Notifications/NewPostCreatorNotificationTest.php index cc4e74c00..9f97e49fb 100644 --- a/tests/Feature/Notifications/NewPostCreatorNotificationTest.php +++ b/tests/Feature/Notifications/NewPostCreatorNotificationTest.php @@ -33,7 +33,7 @@ test('post in a topic creates a notification for the topic creator', function () Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -97,7 +97,7 @@ test('post in a topic creates a notification for the topic creator when post not Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -162,7 +162,7 @@ test('post in a topic does not create a notification for the topic creator when Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -222,7 +222,7 @@ test('post in a topic does not create a notification for the topic creator when Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -282,7 +282,7 @@ test('post in a topic does not create a notification for the topic creator when Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', diff --git a/tests/Feature/Notifications/NewPostSubscriptionNotificationTest.php b/tests/Feature/Notifications/NewPostSubscriptionNotificationTest.php index 0b92a4b12..c8df43e58 100644 --- a/tests/Feature/Notifications/NewPostSubscriptionNotificationTest.php +++ b/tests/Feature/Notifications/NewPostSubscriptionNotificationTest.php @@ -34,7 +34,7 @@ test('post in a topic creates a notification for the topic subscriber', function Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -108,7 +108,7 @@ test('post in a topic creates a notification for the topic subscriber when subsc Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -184,7 +184,7 @@ test('post in a topic does not create a notification for the topic subscriber wh Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -255,7 +255,7 @@ test('post in a topic does not create a notification for the topic subscriber wh Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -326,7 +326,7 @@ test('post in a topic does not create a notification for the topic subscriber wh Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', diff --git a/tests/Feature/Notifications/NewPostTagNotificationTest.php b/tests/Feature/Notifications/NewPostTagNotificationTest.php index a85682197..1ff72b613 100644 --- a/tests/Feature/Notifications/NewPostTagNotificationTest.php +++ b/tests/Feature/Notifications/NewPostTagNotificationTest.php @@ -33,7 +33,7 @@ test('user tags user in forum topic creates a notification for tagged user', fun Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -104,7 +104,7 @@ test('user tags user in forum topic creates a notification for tagged user when Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -177,7 +177,7 @@ test('user tags user in forum topic does not create a notification for tagged us Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -247,7 +247,7 @@ test('staff tags user in forum topic creates a notification for tagged user even Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -319,7 +319,7 @@ test('user tags user in forum topic does not create a notification for tagged us Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -389,7 +389,7 @@ test('user tags user in forum topic does not create a notification for tagged us Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', diff --git a/tests/Feature/Notifications/NewRequestBountyNotificationTest.php b/tests/Feature/Notifications/NewRequestBountyNotificationTest.php index 80afec894..9a7f3c0db 100644 --- a/tests/Feature/Notifications/NewRequestBountyNotificationTest.php +++ b/tests/Feature/Notifications/NewRequestBountyNotificationTest.php @@ -30,7 +30,7 @@ test('add bounty to request creates a notification for the requester', function Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -87,7 +87,7 @@ test('add bounty to request creates a notification for the requester when bounty Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -146,7 +146,7 @@ test('add bounty to request does not create a notification for the requester whe Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -199,7 +199,7 @@ test('add bounty to request does not create a notification for the requester whe Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -252,7 +252,7 @@ test('add bounty to request does not create a notification for the requester whe Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', diff --git a/tests/Feature/Notifications/NewRequestFillApproveNotificationTest.php b/tests/Feature/Notifications/NewRequestFillApproveNotificationTest.php index 981cbc5c9..a660d9f17 100644 --- a/tests/Feature/Notifications/NewRequestFillApproveNotificationTest.php +++ b/tests/Feature/Notifications/NewRequestFillApproveNotificationTest.php @@ -34,7 +34,7 @@ test('accept a request fill creates a notification for the filler', function (): Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -91,7 +91,7 @@ test('accept a request fill creates a notification for the filler when request a Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -151,7 +151,7 @@ test('accept a request fill creates a notification for the filler when all notif Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -206,7 +206,7 @@ test('accept a request fill creates a notification for the filler when fill appr Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -259,7 +259,7 @@ test('accept a request fill creates a notification for the filler when request n Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', diff --git a/tests/Feature/Notifications/NewRequestFillNotificationTest.php b/tests/Feature/Notifications/NewRequestFillNotificationTest.php index 06760e9ed..1c19bafd4 100644 --- a/tests/Feature/Notifications/NewRequestFillNotificationTest.php +++ b/tests/Feature/Notifications/NewRequestFillNotificationTest.php @@ -34,7 +34,7 @@ test('fill a request creates a notification for the request creator', function ( Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -95,7 +95,7 @@ test('fill a request creates a notification for the request creator when request Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -158,7 +158,7 @@ test('fill a request does not create a notification for the request creator when Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -215,7 +215,7 @@ test('fill a request does not create a notification for the request creator when Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -272,7 +272,7 @@ test('fill a request does not create a notification for the request creator when Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', diff --git a/tests/Feature/Notifications/NewRequestFillRejectNotificationTest.php b/tests/Feature/Notifications/NewRequestFillRejectNotificationTest.php index 9d9998c44..ebeee9ef9 100644 --- a/tests/Feature/Notifications/NewRequestFillRejectNotificationTest.php +++ b/tests/Feature/Notifications/NewRequestFillRejectNotificationTest.php @@ -34,7 +34,7 @@ test('decline a request fill creates a notification for the filler', function () Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -92,7 +92,7 @@ test('decline a request fill creates a notification for the filler when request Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -153,7 +153,7 @@ test('decline a request fill does not create a notification for the filler when Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -207,7 +207,7 @@ test('decline a request fill does not create a notification for the filler when Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -261,7 +261,7 @@ test('decline a request fill does not create a notification for the filler when Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', diff --git a/tests/Feature/Notifications/NewTopicSubscribedForumNotificationTest.php b/tests/Feature/Notifications/NewTopicSubscribedForumNotificationTest.php index fdfad8926..0f5113258 100644 --- a/tests/Feature/Notifications/NewTopicSubscribedForumNotificationTest.php +++ b/tests/Feature/Notifications/NewTopicSubscribedForumNotificationTest.php @@ -32,7 +32,7 @@ test('create a topic in a subscribed forum creates a notification for the subscr Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -96,7 +96,7 @@ test('create a topic in a subscribed forum creates a notification for the subscr Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -162,7 +162,7 @@ test('create a topic in a subscribed forum does not create a notification for th Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -222,7 +222,7 @@ test('create a topic in a subscribed forum does not create a notification for th Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -282,7 +282,7 @@ test('create a topic in a subscribed forum does not create a notification for th Notification::fake(); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', diff --git a/tests/Feature/Notifications/NewUploadNotificationTest.php b/tests/Feature/Notifications/NewUploadNotificationTest.php index 8286a8894..b922bc8f7 100644 --- a/tests/Feature/Notifications/NewUploadNotificationTest.php +++ b/tests/Feature/Notifications/NewUploadNotificationTest.php @@ -24,7 +24,7 @@ use App\Models\Type; use App\Models\User; use App\Models\UserNotification; use App\Notifications\NewUpload; -use Database\Seeders\UsersTableSeeder; +use Database\Seeders\UserSeeder; use Illuminate\Http\UploadedFile; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Support\Facades\Notification; @@ -36,7 +36,7 @@ test('upload a torrent creates a notification for followers', function (): void file_put_contents(/home/runner/work/UNIT3D-Community-Edition/UNIT3D-Community-Edition/files/torrents/676034f8afd077.09743623.torrent): Failed to open stream: No such file or directory'); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -120,7 +120,7 @@ test('upload a torrent does not create a notification for followers when all not file_put_contents(/home/runner/work/UNIT3D-Community-Edition/UNIT3D-Community-Edition/files/torrents/676034f8afd077.09743623.torrent): Failed to open stream: No such file or directory'); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -200,7 +200,7 @@ test('upload a torrent does not create a notification for followers when followi file_put_contents(/home/runner/work/UNIT3D-Community-Edition/UNIT3D-Community-Edition/files/torrents/676034f8afd077.09743623.torrent): Failed to open stream: No such file or directory'); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', @@ -280,7 +280,7 @@ test('upload a torrent does not create a notification for followers when followi file_put_contents(/home/runner/work/UNIT3D-Community-Edition/UNIT3D-Community-Edition/files/torrents/676034f8afd077.09743623.torrent): Failed to open stream: No such file or directory'); // Required for ChatRepository() - $this->seed(UsersTableSeeder::class); + $this->seed(UserSeeder::class); $bot = Bot::factory()->create([ 'command' => 'Systembot', diff --git a/tests/Old/ForumControllerTest.php b/tests/Old/ForumControllerTest.php index ae4f273a2..08a3ddea3 100644 --- a/tests/Old/ForumControllerTest.php +++ b/tests/Old/ForumControllerTest.php @@ -22,8 +22,8 @@ use App\Http\Livewire\TopicSearch; use App\Models\Forum; use App\Models\ForumPermission; use App\Models\User; -use Database\Seeders\GroupsTableSeeder; -use Database\Seeders\UsersTableSeeder; +use Database\Seeders\GroupSeeder; +use Database\Seeders\UserSeeder; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; @@ -35,8 +35,8 @@ final class ForumControllerTest extends TestCase #[Test] public function index_returns_an_ok_response(): void { - $this->seed(UsersTableSeeder::class); - $this->seed(GroupsTableSeeder::class); + $this->seed(UserSeeder::class); + $this->seed(GroupSeeder::class); $user = User::factory()->create(); @@ -52,8 +52,8 @@ final class ForumControllerTest extends TestCase #[Test] public function latest_posts_returns_an_ok_response(): void { - $this->seed(UsersTableSeeder::class); - $this->seed(GroupsTableSeeder::class); + $this->seed(UserSeeder::class); + $this->seed(GroupSeeder::class); $user = User::factory()->create(); @@ -66,8 +66,8 @@ final class ForumControllerTest extends TestCase #[Test] public function latest_topics_returns_an_ok_response(): void { - $this->seed(UsersTableSeeder::class); - $this->seed(GroupsTableSeeder::class); + $this->seed(UserSeeder::class); + $this->seed(GroupSeeder::class); $user = User::factory()->create(); @@ -80,8 +80,8 @@ final class ForumControllerTest extends TestCase #[Test] public function show_forum_returns_an_ok_response(): void { - $this->seed(UsersTableSeeder::class); - $this->seed(GroupsTableSeeder::class); + $this->seed(UserSeeder::class); + $this->seed(GroupSeeder::class); $user = User::factory()->create(); @@ -100,8 +100,8 @@ final class ForumControllerTest extends TestCase #[Test] public function subscriptions_returns_an_ok_response(): void { - $this->seed(UsersTableSeeder::class); - $this->seed(GroupsTableSeeder::class); + $this->seed(UserSeeder::class); + $this->seed(GroupSeeder::class); $user = User::factory()->create(); diff --git a/tests/Old/TorrentControllerTest.php b/tests/Old/TorrentControllerTest.php index e2b3e467d..b4dde90d9 100644 --- a/tests/Old/TorrentControllerTest.php +++ b/tests/Old/TorrentControllerTest.php @@ -22,9 +22,9 @@ use App\Models\Resolution; use App\Models\Torrent; use App\Models\Type; use App\Models\User; -use Database\Seeders\BotsTableSeeder; -use Database\Seeders\ChatroomTableSeeder; -use Database\Seeders\UsersTableSeeder; +use Database\Seeders\BotSeeder; +use Database\Seeders\ChatroomSeeder; +use Database\Seeders\UserSeeder; use Illuminate\Http\UploadedFile; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; @@ -111,9 +111,9 @@ final class TorrentControllerTest extends TestCase #[Test] public function store_returns_an_ok_response(): void { - $this->seed(UsersTableSeeder::class); - $this->seed(ChatroomTableSeeder::class); - $this->seed(BotsTableSeeder::class); + $this->seed(UserSeeder::class); + $this->seed(ChatroomSeeder::class); + $this->seed(BotSeeder::class); $user = User::factory()->create(); diff --git a/tests/Unit/Console/Commands/AutoBanDisposableUsersTest.php b/tests/Unit/Console/Commands/AutoBanDisposableUsersTest.php index 82e8ad6aa..9fb71d5ad 100644 --- a/tests/Unit/Console/Commands/AutoBanDisposableUsersTest.php +++ b/tests/Unit/Console/Commands/AutoBanDisposableUsersTest.php @@ -17,10 +17,10 @@ declare(strict_types=1); * @see App\Console\Commands\AutoBanDisposableUsers */ -use Database\Seeders\GroupsTableSeeder; +use Database\Seeders\GroupSeeder; it('runs successfully', function (): void { - $this->seed(GroupsTableSeeder::class); + $this->seed(GroupSeeder::class); $this->artisan('auto:ban_disposable_users') ->assertExitCode(0) diff --git a/tests/Unit/Console/Commands/AutoNerdStatTest.php b/tests/Unit/Console/Commands/AutoNerdStatTest.php index d42f6cbb5..de2f11b80 100644 --- a/tests/Unit/Console/Commands/AutoNerdStatTest.php +++ b/tests/Unit/Console/Commands/AutoNerdStatTest.php @@ -17,16 +17,16 @@ declare(strict_types=1); * @see App\Console\Commands\AutoNerdStat */ -use Database\Seeders\BotsTableSeeder; -use Database\Seeders\ChatroomTableSeeder; -use Database\Seeders\UsersTableSeeder; +use Database\Seeders\BotSeeder; +use Database\Seeders\ChatroomSeeder; +use Database\Seeders\UserSeeder; it('runs successfully', function (): void { $this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.'); - $this->seed(UsersTableSeeder::class); - $this->seed(ChatroomTableSeeder::class); - $this->seed(BotsTableSeeder::class); + $this->seed(UserSeeder::class); + $this->seed(ChatroomSeeder::class); + $this->seed(BotSeeder::class); $this->artisan('auto:nerdstat') ->assertExitCode(0)