tests/unit/Utils/ColumnValuesUtilTest.php
/**
     * Test's if the compile() method returns the properly compiled SQL.
     *
     * @return void
     */
Test's if the compile() method returns the properly compiled SQL.
@return void
Test ' s if the compile () method returns the properly compiled SQL . @return void
public function testCompile()
    {
        $statement = 'UPDATE catalog_product_entity_varchar
                 SET ${column-values:catalog_product_entity_varchar}
               WHERE entity_id = :entity_id';
        $expectedStatement = 'UPDATE catalog_product_entity_varchar
                 SET store_id=:store_id,attribute_id=:attribute_id,value=:value
               WHERE entity_id = :entity_id';
        $this->assertSame($expectedStatement, $this->columnValuesUtil->compile($statement));
    }
public function testCompile ( ) { $ statement = 'UPDATE catalog_product_entity_varchar
                 SET ${column-values:catalog_product_entity_varchar}
               WHERE entity_id = :entity_id' ; $ expectedStatement = 'UPDATE catalog_product_entity_varchar
                 SET store_id=:store_id,attribute_id=:attribute_id,value=:value
               WHERE entity_id = :entity_id' ; $ this -> assertSame ( $ expectedStatement , $ this -> columnValuesUtil -> compile ( $ statement ) ) ; }
Test's if the compile() method returns the properly compiled SQL.
Test ' s if the compile () method returns the properly compiled SQL .
// create the statement that has to be compiled // create the SQL for the prepared statment we expect after compiling // assert that the statement has been compiled to a proper SQL