summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2015-03-10 09:14:36 +0000
committerAlex Pott2015-03-10 09:14:36 +0000
commit3363c8178559ff12ff39b8b3dd6db32746f6f211 (patch)
treef07b291973a484c468079bc0e809af7cb7265b9c
parent41dfab81575d27e3d4f04f056dd9c14ef35fb33d (diff)
Issue #2278073 by cbr, garphy, jonathan_hunt, Berdir: Files with spaces in URIs fail entity TypedData validation
-rw-r--r--core/modules/system/src/Tests/TypedData/TypedDataTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/modules/system/src/Tests/TypedData/TypedDataTest.php b/core/modules/system/src/Tests/TypedData/TypedDataTest.php
index 19a030d..9cfeb8d 100644
--- a/core/modules/system/src/Tests/TypedData/TypedDataTest.php
+++ b/core/modules/system/src/Tests/TypedData/TypedDataTest.php
@@ -239,7 +239,8 @@ class TypedDataTest extends KernelTestBase {
$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();