Bolt\Tests\EventListener\StorageEventListenerTest::testOnPreSavePasswordTooShort PHP Метод

testOnPreSavePasswordTooShort() публичный Метод

It should throw an exception if the password is shorter than 6 characters.
    public function testOnPreSavePasswordTooShort()
    {
        $this->user->getPassword()->willReturn('pass');
        $this->storageEvent->getContent()->willReturn($this->user->reveal());
        $this->listener->onUserEntityPreSave($this->storageEvent->reveal());
    }