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\Enums\Auth\SocialAuthProvider;
use App\Models\User;
test('isConnectedTo reflects whether the provider id column is set', function () {
$user = User::factory()->make(['google_id' => 'g-123', 'github_id' => null]);
expect($user->isConnectedTo(SocialAuthProvider::Google))->toBeTrue();
expect($user->isConnectedTo(SocialAuthProvider::GitHub))->toBeFalse();
});
test('firstName returns the first token of the display name', function (string $name, string $expected) {
expect(User::factory()->make(['name' => $name])->firstName())->toBe($expected);
})->with([
['Paulo Castellano', 'Paulo'],
['Ada', 'Ada'],
[' Marie Curie ', 'Marie'],
['', ''],
[' ', ''],
]);