Phalcon\Test\Unit\Mvc\Model\Helpers\Validation::tooShort PHP Method

tooShort() protected method

protected tooShort ( UnitTester $I )
$I UnitTester
    protected function tooShort(UnitTester $I)
    {
        $model = new Subscriptores();
        $I->assertFalse($model->save(['email' => '[email protected]', 'created_at' => new RawValue('now()'), 'status' => 'A']));
        $expected = [Message::__set_state(['_message' => 'Field email must be at least 7 characters long', '_field' => 'email', '_type' => 'TooShort', '_code' => 0])];
        $I->assertEquals($expected, $model->getMessages());
    }