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;
test('social auth provider has values and labels', function () {
expect(SocialAuthProvider::Google->value)->toBe('google');
expect(SocialAuthProvider::Google->label())->toBe('Google');
expect(SocialAuthProvider::GitHub->value)->toBe('github');
expect(SocialAuthProvider::GitHub->label())->toBe('GitHub');
});
test('isEnabled reflects the matching config key', function () {
config(['trypost.google_auth_enabled' => true, 'trypost.github_auth_enabled' => false]);
expect(SocialAuthProvider::Google->isEnabled())->toBeTrue();
expect(SocialAuthProvider::GitHub->isEnabled())->toBeFalse();
});
test('tryFrom returns null for an unknown provider', function () {
expect(SocialAuthProvider::tryFrom('twitter'))->toBeNull();
});