SilverStripe\Assets\Tests\FolderTest
- Author: Ingo Schommer (ingo at silverstripe dot com)
Synopsis
class FolderTest
extends SapphireTest
{
- // members
- protected static string $fixture_file = 'FileTest.yml';
- // methods
- protected void setUp()
- protected void tearDown()
- public void testCreateFromNameAndParentIDSetsFilename()
- public void testRenamesDuplicateFolders()
- public void testAllChildrenIncludesFolders()
- public void testFindOrMake()
- public void testFindOrMakeFolderThenMove()
- public void testFindOrMakeDisallowsDotsInFolderNames()
- public void testSetNameDisallowsDotsInFolderNames()
- public void testRenameFolderAndCheckTheFile()
- public void testLinkAndRelativeLink()
- public void testIllegalFilenames()
- public void testTitleTiedToName()
- public void testRootFolder()
- public void testPermissions()
- public void testChildrenEnsureParentsPublish()
- public void testFindOrMakeVersioned()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Members
protected
- $fixture_file
Methods
protected
public
- testAllChildrenIncludesFolders()
- testChildrenEnsureParentsPublish() — Ensure that child records ensure parent folders are published
- testCreateFromNameAndParentIDSetsFilename()
- testFindOrMake()
- testFindOrMakeDisallowsDotsInFolderNames()
- testFindOrMakeFolderThenMove() — Tests for the bug #5994 - Moving folder after executing Folder::findOrMake will not set the Filenames properly
- testFindOrMakeVersioned() — When in archived mode, find or make should not find folders that don't exist
- testIllegalFilenames()
- testLinkAndRelativeLink() — URL and Link are undefined for folder dataobjects
- testPermissions() — Test permissions on folders recurse to children.
- testRenameFolderAndCheckTheFile() — Tests for the bug #5994 - if you don't execute get_by_id prior to the rename or move, it will fail.
- testRenamesDuplicateFolders()
- testRootFolder()
- testSetNameDisallowsDotsInFolderNames()
- testTitleTiedToName()