PHP Class Backup\Model\ContentTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: gotcms/gotcms

Protected Properties

Property Type Description
$datatype Gc\Datatype\Model
$document Gc\Document\Model
$documentType Gc\DocumentType\Model
$object Files
$property Gc\Property\Model
$script Gc\Script\Model
$tabModel Gc\Tab\Model
$user Gc\User\Model User model
$view Gc\View\Model
$what array

Public Methods

Method Description
testExport ( ) : void Test
testExportWithEmptyParameterShouldReturnEmptyString ( ) : void Test
testExportWithUndefinedWhatShouldReturnEmptyString ( ) : void Test
testExportwithEmptyContent ( ) : void Test
testImportScript ( )
testImportWithErrorsShouldReturnArray ( )

Protected Methods

Method Description
createContent ( )
createUser ( )
removeContent ( )
removeUser ( )
setUp ( ) : void Sets up the fixture, for example, opens a network connection.
tearDown ( ) : void Tears down the fixture, for example, closes a network connection.

Method Details

createContent() protected method

protected createContent ( )

createUser() protected method

protected createUser ( )

removeContent() protected method

protected removeContent ( )

removeUser() protected method

protected removeUser ( )

setUp() protected method

This method is called before a test is executed.
protected setUp ( ) : void
return void

tearDown() protected method

This method is called after a test is executed.
protected tearDown ( ) : void
return void

testExport() public method

Test
public testExport ( ) : void
return void

testExportWithEmptyParameterShouldReturnEmptyString() public method

Test

testExportWithUndefinedWhatShouldReturnEmptyString() public method

Test

testExportwithEmptyContent() public method

Test
public testExportwithEmptyContent ( ) : void
return void

testImportScript() public method

public testImportScript ( )

testImportWithErrorsShouldReturnArray() public method

Property Details

$datatype protected property

protected Model,Gc\Datatype $datatype
return Gc\Datatype\Model

$document protected property

protected Model,Gc\Document $document
return Gc\Document\Model

$documentType protected property

protected Model,Gc\DocumentType $documentType
return Gc\DocumentType\Model

$object protected property

protected Files,Backup\Model $object
return Files

$property protected property

protected Model,Gc\Property $property
return Gc\Property\Model

$script protected property

protected Model,Gc\Script $script
return Gc\Script\Model

$tabModel protected property

protected Model,Gc\Tab $tabModel
return Gc\Tab\Model

$user protected property

User model
protected Model,Gc\User $user
return Gc\User\Model

$view protected property

protected Model,Gc\View $view
return Gc\View\Model

$what protected property

protected array $what
return array