Elcodi\Component\User\Tests\UnitTests\Entity\Abstracts\AbstractUserTest::testSetPassword PHP Method

testSetPassword() public method

Test set password method.
public testSetPassword ( )
    public function testSetPassword()
    {
        $user = $this->getMockForAbstractClass('Elcodi\\Component\\User\\Entity\\Abstracts\\AbstractUser');
        $user->setPassword('00000');
        $this->assertEquals('00000', $user->getPassword());
        $user->setPassword(null);
        $this->assertEquals('00000', $user->getPassword());
    }