Update unit tests to conform to new escaping
This commit is contained in:
parent
e6ddc65c2a
commit
b73cf49278
|
@ -24,16 +24,16 @@ class WC_Tests_Product_CSV_Exporter extends WC_Unit_Test_Case {
|
||||||
$exporter = new WC_Product_CSV_Exporter();
|
$exporter = new WC_Product_CSV_Exporter();
|
||||||
|
|
||||||
$data = "=cmd|' /C calc'!A0";
|
$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";
|
$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";
|
$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";
|
$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 ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue