ForumPostPostedTest.php 587 Bytes
<?php

namespace FootyRoom\Tests\Unit\ForumPost;

use FootyRoom\Tests\TestCase;
use FootyRoom\Core\ForumPost\ForumPostPosted;
use FootyRoom\Core\ForumPost\ForumPost;

class ForumPostPostedTest extends TestCase
{
    public function testConstructor()
    {
        $title = 'title';
        $newCategoryId = 61;
        $userId = 41301;

        $forumPost = new ForumPost(
            $title,
            $newCategoryId,
            $userId
        );

        $forumPostPosted = new ForumPostPosted($forumPost);

        $this->assertEquals($forumPost, $forumPostPosted->post);
    }
}