CropperTest\GenerationProcessTest
GenerationProcessTest Make sure that we can at least generate something. Uses GD.
Synopsis
class GenerationProcessTest
extends TestCase
{
- // members
- protected static array $fixture_file = ;
- // Inherited members from TestCase
- protected array $extraDataObjects;
- protected $cropObject;
- // methods
- public void testGenerateCroppedWithoutData()
- public void testGenerateCropped()
- protected void createField()
- // 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
- $fixture_file
Methods
protected
public
- testGenerateCropped() — Test the general cropping process, and quickly sanity check the file.
- testGenerateCroppedWithoutData() — If there's no data sent from cropper.js, moan about it.
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()