PHP Class ImboUnitTest\Database\MongoDBTest

Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: imbo/imbo

Public Methods

Method Description
setUp ( ) Set up the mongo and collection mocks and the driver that we want to test
tearDown ( ) Teardown the instances
testGetStatusWhenMongoIsConnectable ( )
testGetStatusWhenMongoIsNotConnectable ( )
testThrowsExceptionWhenMongoFailsDuringDeleteImage ( )
testThrowsExceptionWhenMongoFailsDuringDeleteMetadata ( )
testThrowsExceptionWhenMongoFailsDuringGetImageMimeType ( )
testThrowsExceptionWhenMongoFailsDuringGetImages ( )
testThrowsExceptionWhenMongoFailsDuringGetLastModified ( )
testThrowsExceptionWhenMongoFailsDuringGetMetadata ( )
testThrowsExceptionWhenMongoFailsDuringGetNumImages ( )
testThrowsExceptionWhenMongoFailsDuringInsertImage ( )
testThrowsExceptionWhenMongoFailsDuringInsertImageAndImageAlreadyExists ( )
testThrowsExceptionWhenMongoFailsDuringLoad ( )
testThrowsExceptionWhenMongoFailsDuringUpdateMetadata ( )
testThrowsExceptionWhenNotAbleToGetCollection ( )

Method Details

setUp() public method

Set up the mongo and collection mocks and the driver that we want to test
public setUp ( )

tearDown() public method

Teardown the instances
public tearDown ( )

testGetStatusWhenMongoIsConnectable() public method

testGetStatusWhenMongoIsNotConnectable() public method

testThrowsExceptionWhenMongoFailsDuringDeleteImage() public method

testThrowsExceptionWhenMongoFailsDuringDeleteMetadata() public method

testThrowsExceptionWhenMongoFailsDuringGetImageMimeType() public method

testThrowsExceptionWhenMongoFailsDuringGetImages() public method

testThrowsExceptionWhenMongoFailsDuringGetLastModified() public method

testThrowsExceptionWhenMongoFailsDuringGetMetadata() public method

testThrowsExceptionWhenMongoFailsDuringGetNumImages() public method

testThrowsExceptionWhenMongoFailsDuringInsertImage() public method

testThrowsExceptionWhenMongoFailsDuringInsertImageAndImageAlreadyExists() public method

testThrowsExceptionWhenMongoFailsDuringLoad() public method

testThrowsExceptionWhenMongoFailsDuringUpdateMetadata() public method

testThrowsExceptionWhenNotAbleToGetCollection() public method