UncleCheese\BetterButtons\Tests\Actions\BetterButtonCustomActionTest
Synopsis
class BetterButtonCustomActionTest
extends SapphireTest
{
- // members
- private BetterButtonCustomAction $button;
- // methods
- public void setUp()
- public void testSetRedirectThrowsExceptionOnInvalidType()
- public void testSetAndGetRedirectType()
- public void testSetAndGetRedirectUrl()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Members
private
Methods
public
- setUp() — Instantiate the test button
- testSetAndGetRedirectType() — Test that a valid redirect type can be set and retrieved
- testSetAndGetRedirectUrl() — Test that the redirect URL can be set and retrieved
- testSetRedirectThrowsExceptionOnInvalidType() — Test that setRedirectType will throw an exception if you provide an unrecognised redirect type