lithium\tests\cases\data\ModelTest::testValidatesEmailIsValid PHP Method

testValidatesEmailIsValid() public method

    public function testValidatesEmailIsValid()
    {
        $post = MockPostForValidates::create(array('title' => 'new post', 'email' => '[email protected]'));
        $result = $post->validates();
        $this->assertTrue($result);
        $result = $post->errors();
        $this->assertEmpty($result);
    }
ModelTest