lithium\tests\cases\data\source\DatabaseTest::testReadWithQueryObjectArray PHP Метод

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

    public function testReadWithQueryObjectArray()
    {
        $query = new Query(array('type' => 'read', 'model' => $this->_model));
        $result = $this->_db->read($query, array('return' => 'array'));
        $this->assertInternalType('array', $result);
        $expected = "SELECT * FROM {mock_database_posts} AS {MockDatabasePost};";
        $result = $this->_db->sql;
        $this->assertEqual($expected, $result);
    }
DatabaseTest