PHP Class ActivityLog\Model\Event\ModelTest

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

Protected Properties

Property Type Description
$boostrap ActivityLog\Module
$object Comment

Public Methods

Method Description
testDeleteWithWrongValues ( ) : void Test
testDeleteWithoutId ( ) : void Test
testFromArray ( ) : void Test
testFromFakeId ( ) : void Test
testFromId ( ) : void Test
testGetUser ( ) : void Test
testSave ( ) : void Test
testSaveWithIdShouldReturnTrue ( ) : void Test
testSaveWithInvalidDataShouldReturnException ( ) : void Test

Protected Methods

Method Description
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

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

testDeleteWithWrongValues() public method

Test
public testDeleteWithWrongValues ( ) : void
return void

testDeleteWithoutId() public method

Test
public testDeleteWithoutId ( ) : void
return void

testFromArray() public method

Test
public testFromArray ( ) : void
return void

testFromFakeId() public method

Test
public testFromFakeId ( ) : void
return void

testFromId() public method

Test
public testFromId ( ) : void
return void

testGetUser() public method

Test
public testGetUser ( ) : void
return void

testSave() public method

Test
public testSave ( ) : void
return void

testSaveWithIdShouldReturnTrue() public method

Test

testSaveWithInvalidDataShouldReturnException() public method

Test

Property Details

$boostrap protected property

protected Module,ActivityLog $boostrap
return ActivityLog\Module

$object protected property

protected Comment $object
return Comment