You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
765 B
29 lines
765 B
<?php
|
|
|
|
namespace Tests\Feature\Projects;
|
|
|
|
use Tests\TestCase;
|
|
use App\Entities\Projects\Issue;
|
|
use App\Entities\Projects\Comment;
|
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
|
|
|
class IssueCommentsTest extends TestCase
|
|
{
|
|
use RefreshDatabase;
|
|
|
|
/** @test */
|
|
public function user_can_view_issue_comments()
|
|
{
|
|
$this->adminUserSigningIn();
|
|
$issue = factory(Issue::class)->create();
|
|
$comment = factory(Comment::class)->create([
|
|
'commentable_type' => 'issues',
|
|
'commentable_id' => $issue->id,
|
|
'body' => 'This is issue comment.',
|
|
]);
|
|
|
|
$this->visitRoute('projects.issues.show', [$issue->project, $issue]);
|
|
|
|
$this->seeText('This is issue comment.');
|
|
}
|
|
}
|