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\Jobs\SetupWorkspaceDefaults;
use App\Models\User;
use App\Models\Workspace;
use Illuminate\Support\Facades\Queue;
test('creating a workspace dispatches the defaults job', function () {
Queue::fake();
$user = User::factory()->create();
$workspace = Workspace::factory()->create(['account_id' => $user->account_id, 'user_id' => $user->id]);
Queue::assertPushed(SetupWorkspaceDefaults::class, fn (SetupWorkspaceDefaults $job) => $job->workspaceId === $workspace->id);
});
test('the defaults job is dispatched after commit', function () {
Queue::fake();
$user = User::factory()->create();
Workspace::factory()->create(['account_id' => $user->account_id, 'user_id' => $user->id]);
Queue::assertPushed(SetupWorkspaceDefaults::class, fn (SetupWorkspaceDefaults $job) => $job->afterCommit === true);
});