Commit 3363c817 authored by alexpott's avatar alexpott

Issue #2278073 by cbr, garphy, jonathan_hunt, Berdir: Files with spaces in...

Issue #2278073 by cbr, garphy, jonathan_hunt, Berdir: Files with spaces in URIs fail entity TypedData validation
parent 41dfab81
......@@ -239,7 +239,8 @@ public function testGetAndSet() {
$this->assertEqual($typed_data->validate()->count(), 0);
$typed_data->setValue('invalid');
$this->assertEqual($typed_data->validate()->count(), 1, 'Validation detected invalid value.');
$typed_data->setValue('public://field/image/Photo on 4-28-14 at 12.01 PM.jpg');
$this->assertEqual($typed_data->validate()->count(), 0, 'Filename with spaces is valid.');
// Generate some files that will be used to test the binary data type.
$files = array();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment