SilverLeague\IDEAnnotator\Tests\ControllerAnnotatorTest
Class DataObjectAnnotatorTest
Several tests to make sure the Annotator does it's job correctly
Synopsis
class ControllerAnnotatorTest
extends SapphireTest
{
- // members
- private MockDataObjectAnnotator $annotator;
- private AnnotatePermissionChecker $permissionChecker;
- // methods
- public void testPageGetsAnnotated()
- public void testPageControllerGetsAnnotator()
- public void testAnnotateControllerExtension()
- public void testShortPageGetsAnnotated()
- public void testShortPageControllerGetsAnnotator()
- public void testShortAnnotateControllerExtension()
- public void tearDown()
- protected void setUp()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Members
private
- $annotator — SilverLeague\IDEAnnotator\Tests\MockDataObjectAnnotator
- $permissionChecker — SilverLeague\IDEAnnotator\Helpers\AnnotatePermissionChecker
Methods
protected
- setUp() — Setup Defaults
public
- tearDown()
- testAnnotateControllerExtension() — Test the generation of annotations for an Extension
- testPageControllerGetsAnnotator()
- testPageGetsAnnotated() — Check if Page is annotated correctly
- testShortAnnotateControllerExtension() — Test the generation of annotations for an Extension
- testShortPageControllerGetsAnnotator()
- testShortPageGetsAnnotated()