Code Duplication    Length = 8-8 lines in 2 locations

tests/LikeDislikeAPITest.php 2 locations

@@ 122-129 (lines=8) @@
119
     *
120
     * @return void
121
     */
122
    public function testLikesCountReturnInteger()
123
    {
124
        $user = $this->createUser();
125
        $video = $this->createFakeVideo($user);
126
        $count = $this->get('/api/videos/'.$video->id.'/likes/count');
127
128
        $this->assertTrue(is_int($count->response->original));
129
    }
130
131
    /**
132
     * Test dislikes count return integer.
@@ 136-143 (lines=8) @@
133
     *
134
     * @return void
135
     */
136
    public function testDisikesCountReturnInteger()
137
    {
138
        $user = $this->createUser();
139
        $video = $this->createFakeVideo($user);
140
        $count = $this->get('/api/videos/'.$video->id.'/dislikes/count');
141
142
        $this->assertTrue(is_int($count->response->original));
143
    }
144
145
    /**
146
     * Test store like and see in DB.