PHP Class ImboIntegrationTest\Database\DatabaseTests

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: imbo/imbo Class Usage Examples

Méthodes publiques

Méthode Description
getPageAndLimit ( )
getShortUrlVariations ( ) : array[] Data provider
getSortData ( )
setUp ( ) Set up
tearDown ( ) Tear down
testCanCheckIfImageAlreadyExists ( )
testCanDeleteASingleShortUrl ( )
testCanDeleteShortUrls ( )
testCanFilterOnChecksums ( )
testCanFilterOnImageIdentifiers ( )
testCanGetNumberOfBytes ( )
testCanGetNumberOfUsers ( )
testCanGetShortUrlIdThatDoesNotExist ( )
testCanGetStatus ( )
testCanInsertAndGetParametersForAShortUrl ( $shortUrlId, array $query = [], $extension = null )
testCanSortImages ( array $sort = null, $field, array $values )
testDeleteImageThatDoesNotExist ( )
testDeleteMetataFromImageThatDoesNotExist ( )
testGetImageMimeType ( )
testGetImagesAndReturnMetadata ( )
testGetImagesReturnsImagesOnlyForSpecifiedUsers ( )
testGetImagesReturnsImagesWithDateTimeInstances ( )
testGetImagesWithNoQuery ( )
testGetImagesWithPageAndLimit ( $page = null, $limit = null, array $imageIdentifiers )
testGetImagesWithStartAndEndTimestamps ( )
testGetLastModified ( )
testGetLastModifiedOfImageThatDoesNotExist ( )
testGetLastModifiedWhenUserHasNoImages ( )
testGetMetadataWhenImageDoesNotExist ( )
testGetMetadataWhenImageHasNone ( )
testGetMimeTypeWhenImageDoesNotExist ( )
testGetNumImages ( )
testInsertAndGetImage ( )
testLoadImageThatDoesNotExist ( )
testMetadataWithNestedArraysIsRepresetedCorrectly ( )
testMetadataWithNestedArraysIsRepresetedCorrectlyWhenFetchingMultipleImages ( )
testStoreDeleteAndGetImage ( )
testStoreSameImageTwice ( )
testUpdateAndGetMetadata ( )
testUpdateDeleteAndGetMetadata ( )

Méthodes protégées

Méthode Description
getAdapter ( ) : Imbo\Database\DatabaseInterface Get the adapter we want to test
getImage ( ) : Image Fetch an image model

Private Methods

Méthode Description
insertImages ( boolean $alternateUser = false ) : array Insert some images to test the query functionality

Method Details

getAdapter() abstract protected méthode

Get the adapter we want to test
abstract protected getAdapter ( ) : Imbo\Database\DatabaseInterface
Résultat Imbo\Database\DatabaseInterface

getImage() protected méthode

Fetch an image model
protected getImage ( ) : Image
Résultat Imbo\Model\Image

getPageAndLimit() public méthode

public getPageAndLimit ( )

getShortUrlVariations() public méthode

Data provider
public getShortUrlVariations ( ) : array[]
Résultat array[]

getSortData() public méthode

public getSortData ( )

setUp() public méthode

Set up
public setUp ( )

tearDown() public méthode

Tear down
public tearDown ( )

testCanCheckIfImageAlreadyExists() public méthode

testCanDeleteASingleShortUrl() public méthode

testCanDeleteShortUrls() public méthode

testCanFilterOnChecksums() public méthode

testCanFilterOnImageIdentifiers() public méthode

testCanGetNumberOfBytes() public méthode

testCanGetNumberOfUsers() public méthode

testCanGetShortUrlIdThatDoesNotExist() public méthode

testCanGetStatus() public méthode

public testCanGetStatus ( )

testCanInsertAndGetParametersForAShortUrl() public méthode

public testCanInsertAndGetParametersForAShortUrl ( $shortUrlId, array $query = [], $extension = null )
$query array

testCanSortImages() public méthode

public testCanSortImages ( array $sort = null, $field, array $values )
$sort array
$values array

testDeleteImageThatDoesNotExist() public méthode

testDeleteMetataFromImageThatDoesNotExist() public méthode

testGetImageMimeType() public méthode

testGetImagesAndReturnMetadata() public méthode

testGetImagesReturnsImagesOnlyForSpecifiedUsers() public méthode

testGetImagesReturnsImagesWithDateTimeInstances() public méthode

testGetImagesWithNoQuery() public méthode

testGetImagesWithPageAndLimit() public méthode

public testGetImagesWithPageAndLimit ( $page = null, $limit = null, array $imageIdentifiers )
$imageIdentifiers array

testGetImagesWithStartAndEndTimestamps() public méthode

testGetLastModified() public méthode

public testGetLastModified ( )

testGetLastModifiedOfImageThatDoesNotExist() public méthode

testGetLastModifiedWhenUserHasNoImages() public méthode

testGetMetadataWhenImageDoesNotExist() public méthode

testGetMetadataWhenImageHasNone() public méthode

testGetMimeTypeWhenImageDoesNotExist() public méthode

testGetNumImages() public méthode

public testGetNumImages ( )

testInsertAndGetImage() public méthode

testLoadImageThatDoesNotExist() public méthode

testMetadataWithNestedArraysIsRepresetedCorrectly() public méthode

testMetadataWithNestedArraysIsRepresetedCorrectlyWhenFetchingMultipleImages() public méthode

testStoreDeleteAndGetImage() public méthode

testStoreSameImageTwice() public méthode

testUpdateAndGetMetadata() public méthode

testUpdateDeleteAndGetMetadata() public méthode