lithium\tests\integration\data\DocumentTest::testFindOnEmptyCollection PHP Method

testFindOnEmptyCollection() public method

Tests that a successful find on an empty collection doesn't error out when using count on the resulting collection returned. See issue #1042.
    public function testFindOnEmptyCollection()
    {
        $result = Galleries::find('all');
        $expected = 0;
        $result = $result->count();
        $this->assertIdentical($expected, $result);
    }