\SnippetTest
Synopsis
class SnippetTest
extends SapphireTest
{
- // members
- public static string $fixture_file = 'SnippetTest.yml';
- // methods
- public void setUp()
- public void testCurrentVersion()
- public void testSnippetText()
- public void testVersionCreation()
- public void testBrushName()
- public void testFolderResetOnNewLanguage()
- public void testVersionCleanupOnDelete()
Hierarchy
Extends
- SapphireTest
Members
public
- $fixture_file
Methods
public
- setUp() — Forces the snippet languages to be populated on setup
- testBrushName() — Tests to see if the proper brush name is loaded for the snippet
- testCurrentVersion() — Tests to see if the current version functionality is actually returning the correct version
- testFolderResetOnNewLanguage() — Tests to see if the folder is reset after changing to another language id
- testSnippetText() — Tests to ensure that the snippet text is what it should be at the current version
- testVersionCleanupOnDelete() — Tests to see if the versions for a snippet are actually removed when the snippet is deleted using a call to DataObject::delete()
- testVersionCreation() — Tests to see if a version is created when we update the snippet's text