Skip to content

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.

633 B
Raw Blame
<?php

declare(strict_types=1);

use App\Actions\User\CreateUser;
use Database\Seeders\PlanSeeder;

beforeEach(function () {
    config(['trypost.self_hosted' => false]);
    $this->seed(PlanSeeder::class);
});

test('new signup does not create a trial before checkout', function () {
    $user = CreateUser::execute([
        'name' => 'Alice',
        'email' => '[email protected]',
        'password' => 'password123',
        'registration_ip' => '127.0.0.1',
    ]);

    expect($user->account->plan_id)->toBeNull();
    expect($user->account->trial_ends_at)->toBeNull();
    expect($user->account->stripe_id)->toBeNull();
});