lithium\tests\cases\data\source\DatabaseTest::testCleanRenderCommand PHP Method

testCleanRenderCommand() public method

    public function testCleanRenderCommand()
    {
        $entity = new Record(array('model' => $this->_model, 'data' => array('title' => '{:foobar}'), 'exists' => false));
        $query = new Query(compact('entity') + array('type' => 'create'));
        $result = $this->_db->create($query);
        $expected = "INSERT INTO {mock_database_posts} ({title}) VALUES ('{:foobar}');";
        $this->assertEqual($expected, $this->_db->sql);
    }
DatabaseTest