<?php

namespace Tests\Unit;

use App\Campaigns\PublishedState;
use PHPUnit\Framework\TestCase;

class PublishedStateTest extends TestCase
{
    public function test_linkedin_says_its_ad_set_and_ads_are_active_under_a_paused_campaign(): void
    {
        $this->assertSame(
            'with the campaign paused and its ad set and ads active',
            PublishedState::describe('linkedin'),
        );
    }

    public function test_other_platforms_are_created_paused(): void
    {
        $this->assertSame('paused', PublishedState::describe('meta'));
        $this->assertSame('paused', PublishedState::describe('google'));
    }

    public function test_linkedin_starts_warn_that_delivery_takes_about_ten_minutes(): void
    {
        $this->assertStringContainsString('within about 10 minutes', PublishedState::afterStart('linkedin'));
        $this->assertStringNotContainsString('10 minutes', PublishedState::afterStart('meta'));
    }
}
