refactor: use laravel 7 seeder naming conventions

In laravel 7 and onward, seeder naming convention was changed to be singular and without `Table`.
This commit is contained in:
Roardom
2025-06-11 07:35:48 +00:00
parent 2fcf4ad2ee
commit a84c6de560
61 changed files with 209 additions and 209 deletions

View File

@@ -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",

View File

@@ -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
{

View File

@@ -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
{

View File

@@ -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
{

View File

@@ -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
{

View File

@@ -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
{

View File

@@ -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.

View File

@@ -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
{

View File

@@ -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
{

View File

@@ -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,
]);
}
}

View File

@@ -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
{

View File

@@ -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
{

View File

@@ -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
{

View File

@@ -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
{

View File

@@ -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
{

View File

@@ -22,7 +22,7 @@ use Illuminate\Support\Facades\DB;
// cspell:ignore orwill
class PagesTableSeeder extends Seeder
class PageSeeder extends Seeder
{
public function run(): void
{

View File

@@ -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
{

View File

@@ -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
{

View File

@@ -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
{

View File

@@ -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
{

View File

@@ -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
{

View File

@@ -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
{

View File

@@ -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);
});

View File

@@ -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();

View File

@@ -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();

View File

@@ -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();

View File

@@ -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();

View File

@@ -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,

View File

@@ -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();

View File

@@ -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();

View File

@@ -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');

View File

@@ -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')

View File

@@ -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()

View File

@@ -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',

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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();

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',

View File

@@ -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();

View File

@@ -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();

View File

@@ -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)

View File

@@ -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)