Blame view
tests/unit/ForumPost/MovedTest.php
671 Bytes
e77200db5 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 28 29 30 |
<?php namespace FootyRoom\Tests\Unit\ForumPost; use FootyRoom\Tests\TestCase; use FootyRoom\Core\ForumPost\Moved; use FootyRoom\Core\ForumPost\ForumPost; class MovedTest extends TestCase { public function testConstructor() { $previousCategoryId = 60; $title = 'title'; $newCategoryId = 61; $userId = 41301; $forumPost = new ForumPost( $title, $newCategoryId, $userId ); $moved = new Moved($forumPost, $previousCategoryId); $this->assertEquals($forumPost, $moved->post); $this->assertEquals($previousCategoryId, $moved->previousCategoryId); } } |