Code Duplication    Length = 10-13 lines in 2 locations

app/Containers/User/UI/API/Tests/Functional/DeleteUserTest.php 1 location

@@ 39-51 (lines=13) @@
36
        ], $response);
37
    }
38
39
    public function testDeleteAnotherExistingUser_()
40
    {
41
        // make the call form the user token who has no access
42
        $this->getTestingUserWithoutAccess();
43
44
        $anotherUser = factory(User::class)->create();
45
46
        // send the HTTP request
47
        $response = $this->injectId($anotherUser->id)->makeCall();
48
49
        // assert response status is correct
50
        $this->assertEquals('500', $response->getStatusCode());
51
    }
52
}
53

app/Containers/User/UI/API/Tests/Functional/RefreshUserTest.php 1 location

@@ 34-43 (lines=10) @@
31
        $this->assertEquals('200', $response->getStatusCode());
32
    }
33
34
    public function testRefreshAnotherUserById_()
35
    {
36
        $anotherUser = factory(User::class)->create();
37
38
        // send the HTTP request
39
        $response = $this->injectId($anotherUser->id)->makeCall();
40
41
        // assert response status is correct
42
        $this->assertEquals('500', $response->getStatusCode());
43
    }
44
45
}
46