CropperTest\CropperFieldTest
Synopsis
class CropperFieldTest
extends TestCase
{
- // Inherited members from TestCase
- protected array $extraDataObjects;
- protected $cropObject;
- // methods
- public void testSetForm()
- public void testGetInjectCropper()
- public void testCanCrop()
- public void testGetCropData()
- public void testCleverGetRecord()
- public void testSetGetRecord()
- // Inherited methods from TestCase
- public void setUpOnce()
- public void tearDownOnce()
- public void setUp()
- protected CropperField createField()
- protected Form createForm()
- protected void setCropObject()
- protected CropObject getCropObject()
- protected CropObject cropObjFromFixture()
- protected array sampleCropData()
- protected string getClassTestDir()
- protected string getTestAssetDir()
- protected void prepareFileAssets()
- protected void cleanFileAssets()
Hierarchy
Extends
Members
protected
- $cropObject
- $extraDataObjects
Methods
public
- testCanCrop() — Test that canCrop returns true at the right time.
- testCleverGetRecord() — Test the getRecord method's "clever" form based path
- testGetCropData() — Test that getCropData returns valid JSON
- testGetInjectCropper() — Test the Injector config to ensure a Cropper is always available
- testSetForm() — The field must set its adapter's form field
- testSetGetRecord() — Mundane setting and getting...
Inherited from CropperTest\TestCase
protected
- cleanFileAssets() — Clean up the directory afterwards
- createField()
- createForm()
- cropObjFromFixture() — Like objFromFixture but does some CropObject sugar for us
- getClassTestDir() — The name of the test class, relative to the asset directory.
- getCropObject()
- getTestAssetDir() — The fully qualified test asset directory.
- prepareFileAssets() — Copy the file assets from the fixture distribution folder into assets/.
- sampleCropData()
- setCropObject()