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

testSimpleFindFirst() public method

Tests the find 'first' filter on a simple record set.
public testSimpleFindFirst ( )
    public function testSimpleFindFirst()
    {
        $result = MockComment::first();
        $this->assertInstanceOf('lithium\\data\\entity\\Record', $result);
        $expected = 'First comment';
        $this->assertEqual($expected, $result->text);
    }
ModelTest