Blame view

tests/unit/ForumPost/ForumPostPostedTest.php 587 Bytes
e77200db5   nologostudio.ru   Initial commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  <?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);
      }
  }