PHP Class ImageTest

Inheritance: extends Codeception\TestCase\Test
Show file Open project: ssddanbrown/bookstack Class Usage Examples

Public Methods

Method Description
test_image_delete ( )
test_image_upload ( )

Protected Methods

Method Description
deleteImage ( $relPath ) Delete an uploaded image.
getTestImage ( $fileName ) : Illuminate\Http\UploadedFile Get a test image that can be uploaded
getTestImagePath ( $type, $fileName ) : string Get the path for a test image.
uploadImage ( $name, integer $uploadedTo ) : string Uploads an image with the given name.

Method Details

deleteImage() protected method

Delete an uploaded image.
protected deleteImage ( $relPath )
$relPath

getTestImage() protected method

Get a test image that can be uploaded
protected getTestImage ( $fileName ) : Illuminate\Http\UploadedFile
$fileName
return Illuminate\Http\UploadedFile

getTestImagePath() protected method

Get the path for a test image.
protected getTestImagePath ( $type, $fileName ) : string
$type
$fileName
return string

test_image_delete() public method

public test_image_delete ( )

test_image_upload() public method

public test_image_upload ( )

uploadImage() protected method

Uploads an image with the given name.
protected uploadImage ( $name, integer $uploadedTo ) : string
$name
$uploadedTo integer
return string