Code Duplication    Length = 10-10 lines in 2 locations

eZ/Publish/Core/MVC/Symfony/Security/Tests/UserWrappedTest.php 2 locations

@@ 29-38 (lines=10) @@
26
        $this->apiUser = $this->createMock(APIUser::class);
27
    }
28
29
    public function testGetSetAPIUser()
30
    {
31
        $originalUser = $this->createMock(SymfonyUserInterface::class);
32
        $userWrapped = new UserWrapped($originalUser, $this->apiUser);
33
        $this->assertSame($this->apiUser, $userWrapped->getAPIUser());
34
35
        $newApiUser = $this->createMock(APIUser::class);
36
        $userWrapped->setAPIUser($newApiUser);
37
        $this->assertSame($newApiUser, $userWrapped->getAPIUser());
38
    }
39
40
    public function testGetSetWrappedUser()
41
    {
@@ 40-49 (lines=10) @@
37
        $this->assertSame($newApiUser, $userWrapped->getAPIUser());
38
    }
39
40
    public function testGetSetWrappedUser()
41
    {
42
        $originalUser = $this->createMock(SymfonyUserInterface::class);
43
        $userWrapped = new UserWrapped($originalUser, $this->apiUser);
44
        $this->assertSame($originalUser, $userWrapped->getWrappedUser());
45
46
        $newWrappedUser = $this->createMock(UserInterface::class);
47
        $userWrapped->setWrappedUser($newWrappedUser);
48
        $this->assertSame($newWrappedUser, $userWrapped->getWrappedUser());
49
    }
50
51
    public function testRegularUser()
52
    {