@@ -74,10 +74,10 @@ public function dataConversionMatrix()
7474 ['test string ' , PropertyType::STRING , true , PropertyType::BOOLEAN ],
7575 ['false ' , PropertyType::STRING , true , PropertyType::BOOLEAN ],
7676 ['' , PropertyType::STRING , false , PropertyType::BOOLEAN ],
77- // TODO: check NAME may not have spaces ['test string', PropertyType::STRING, null, PropertyType::NAME],
7877 ['test ' , PropertyType::STRING , 'test ' , PropertyType::NAME ],
79- // TODO: check PATH may not have spaces ['test string ', PropertyType::STRING, null , PropertyType::PATH ],
78+ ['test space ' , PropertyType::STRING , ' test space ' , PropertyType::NAME ],
8079 ['../the/node ' , PropertyType::STRING , '../the/node ' , PropertyType::PATH ],
80+ ['../the space/node ' , PropertyType::STRING , '../the space/node ' , PropertyType::PATH ],
8181 ['38b7cf18-c417-477a-af0b-c1e92a290c9a ' , PropertyType::STRING , '38b7cf18-c417-477a-af0b-c1e92a290c9a ' , PropertyType::REFERENCE ],
8282 // TODO: should we move UUIDHelper to phpcr so we can check in PropertyType? ['test string', PropertyType::STRING, null, PropertyType::REFERENCE],
8383 ['' , PropertyType::STRING , null , PropertyType::REFERENCE ],
@@ -93,9 +93,7 @@ public function dataConversionMatrix()
9393 [$ stream , PropertyType::BINARY , null , PropertyType::DATE ],
9494 [$ dateStream , PropertyType::BINARY , new DateTime ('17.12.2010 GMT ' ), PropertyType::DATE ],
9595 [$ stream , PropertyType::BINARY , true , PropertyType::BOOLEAN ],
96- // TODO: check NAME may not have spaces [$stream, PropertyType::BINARY, null, PropertyType::NAME],
9796 [$ nameStream , PropertyType::BINARY , 'test ' , PropertyType::NAME ],
98- // TODO: check PATH may not have spaces [$stream, PropertyType::BINARY, null, PropertyType::PATH],
9997 // TODO: should we move UUIDHelper to phpcr so we can check in PropertyType? [$stream, PropertyType::STRING, null, PropertyType::REFERENCE],
10098 [$ uuidStream , PropertyType::BINARY , '38b7cf18-c417-477a-af0b-c1e92a290c9a ' , PropertyType::REFERENCE ],
10199 [$ stream , PropertyType::BINARY , 'test string ' , PropertyType::DECIMAL ], // up to the decimal functions to validate
0 commit comments