Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.
PHP ai-agentsblueskyfacebookinstagramlaravellinkedinmastodonmcpmcp-serveropen-sourcerest-apiself-hostedsocial-mediasocial-media-managementsocial-media-schedulerthreadstiktokvuejsxyoutube
<?php
declare(strict_types=1);
use App\Models\User;
use Database\Seeders\UserSeeder;
test('seeder creates the admin user and a workspace when database is empty', function () {
expect(User::count())->toBe(0);
$this->seed(UserSeeder::class);
$admin = User::where('email', '[email protected]')->first();
expect($admin)->not->toBeNull();
expect($admin->account_id)->not->toBeNull();
expect($admin->workspaces()->count())->toBe(1);
});
test('seeder is idempotent when a user already exists', function () {
User::factory()->create();
$this->seed(UserSeeder::class);
expect(User::where('email', '[email protected]')->exists())->toBeFalse();
});