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);
test('auth screens receive the configured legal links', function (string $route) {
config()->set('trypost.self_hosted', false);
config()->set('trypost.legal.terms_url', 'https://example.test/terms');
config()->set('trypost.legal.privacy_url', 'https://example.test/privacy');
$this->get(route($route))
->assertOk()
->assertInertia(fn ($page) => $page
->where('legal.terms', 'https://example.test/terms')
->where('legal.privacy', 'https://example.test/privacy')
);
})->with(['login', 'register']);
test('a self-hosted install can point the legal links at its own documents', function () {
config()->set('trypost.legal.terms_url', 'https://acme.test/legal/tos');
config()->set('trypost.legal.privacy_url', 'https://acme.test/legal/privacy');
$this->get(route('login'))
->assertInertia(fn ($page) => $page
->where('legal.terms', 'https://acme.test/legal/tos')
->where('legal.privacy', 'https://acme.test/legal/privacy')
);
});
test('the legal sentence carries a url placeholder rather than a hardcoded host', function (string $locale) {
$sentence = require base_path("lang/{$locale}/auth.php");
expect($sentence['legal'])
->toContain(':terms_url')
->toContain(':privacy_url')
->not->toContain('trypost.it');
})->with(array_map(
fn (string $path) => basename(dirname($path)),
glob(dirname(__DIR__, 3).'/lang/*/auth.php'),
));