Update unit tests to conform to new escaping

This commit is contained in:
Gerhard Potgieter 2018-05-18 12:09:56 +01:00
parent e6ddc65c2a
commit b73cf49278
1 changed files with 4 additions and 4 deletions

View File

@ -24,16 +24,16 @@ class WC_Tests_Product_CSV_Exporter extends WC_Unit_Test_Case {
$exporter = new WC_Product_CSV_Exporter();
$data = "=cmd|' /C calc'!A0";
$this->assertEquals( "'=cmd|' /C calc'!A0", $exporter->escape_data( $data ) );
$this->assertEquals( "'=cmd|' /C calc'!A0'", $exporter->escape_data( $data ) );
$data = "+cmd|' /C calc'!A0";
$this->assertEquals( "'+cmd|' /C calc'!A0", $exporter->escape_data( $data ) );
$this->assertEquals( "'+cmd|' /C calc'!A0'", $exporter->escape_data( $data ) );
$data = "-cmd|' /C calc'!A0";
$this->assertEquals( "'-cmd|' /C calc'!A0", $exporter->escape_data( $data ) );
$this->assertEquals( "'-cmd|' /C calc'!A0'", $exporter->escape_data( $data ) );
$data = "@cmd|' /C calc'!A0";
$this->assertEquals( "'@cmd|' /C calc'!A0", $exporter->escape_data( $data ) );
$this->assertEquals( "'@cmd|' /C calc'!A0'", $exporter->escape_data( $data ) );
}
/**