silverstripe-framework/tests/model/ImageTest.yml
Fred Condo 5f1faec3e2 BUGFIX: regex-escape strings to prevent regex syntax errors
Apply preg_quote to each generator name and to $this->Name so that their use in a
regular expression will not cause run-time errors.

Provided fixture and test.
2011-10-31 11:34:33 -07:00

19 lines
594 B
YAML

Folder:
folder1:
Filename: assets/ImageTest
Image:
imageWithTitle:
Title: This is a image Title
Filename: assets/ImageTest/test_image.png
Parent: =>Folder.folder1
imageWithoutTitle:
Filename: assets/ImageTest/test_image.png
Parent: =>Folder.folder1
imageWithoutTitleContainingDots:
Filename: assets/ImageTest/test.image.with.dots.png
Parent: =>Folder.folder1
imageWithMetacharacters:
Title: This is a/an image Title
Filename: assets/ImageTest/test_image*).png
Parent: =>Folder.folder1