Code Duplication    Length = 7-7 lines in 2 locations

src/Testing/MakesApiRequests.php 2 locations

@@ 24-30 (lines=7) @@
21
     * @param  int   $status
22
     * @return $this
23
     */
24
    protected function seeSuccess($data = null, $status = 200)
25
    {
26
        $response = $this->seeSuccessResponse($data, $status);
27
        $this->seeSuccessData($response->getData(true)['data']);
28
29
        return $this;
30
    }
31
32
    /**
33
     * Assert that the response is a valid success response.
@@ 39-45 (lines=7) @@
36
     * @param  int   $status
37
     * @return $this
38
     */
39
    protected function seeSuccessEquals($data = null, $status = 200)
40
    {
41
        $response = $this->seeSuccessResponse($data, $status);
42
        $this->seeJsonEquals($response->getData(true));
43
44
        return $this;
45
    }
46
47
    /**
48
     * Assert that the response data contains the given structure.