SilverStripe\ContentReview\Tests\Extensions\ContentReviewCMSExtensionTest
Synopsis
class ContentReviewCMSExtensionTest
extends SapphireTest
{
- // methods
- public void testReviewContentForm()
- public void testGetReviewContentFormThrowsExceptionWhenPageNotFound()
- public void testGetReviewContentFormThrowsExceptionWhenObjectCannotBeReviewed()
- public void testSaveReviewCallsHandler()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Methods
public
- testGetReviewContentFormThrowsExceptionWhenObjectCannotBeReviewed()
- testGetReviewContentFormThrowsExceptionWhenPageNotFound()
- testReviewContentForm() — Test that ReviewContentForm finds an ID parameter then returns the result of getReviewContentForm with the passed ID
- testSaveReviewCallsHandler() — Ensure that savereview() calls the ReviewContentHandler and passes the data to it