Code Duplication    Length = 7-7 lines in 2 locations

src/Traits/MakesApiRequests.php 2 locations

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