eZ\Publish\Core\MVC\Symfony\Security\Tests\UserWrappedTest::testIsEqualTo PHP Method

testIsEqualTo() public method

public testIsEqualTo ( )
    public function testIsEqualTo()
    {
        $originalUser = $this->getMock('eZ\\Publish\\Core\\MVC\\Symfony\\Security\\User');
        $user = new UserWrapped($originalUser, $this->apiUser);
        $otherUser = $this->getMock('Symfony\\Component\\Security\\Core\\User\\UserInterface');
        $originalUser->expects($this->once())->method('isEqualTo')->with($otherUser)->will($this->returnValue(false));
        $this->assertFalse($user->isEqualTo($otherUser));
    }