Method | Description | |
---|---|---|
createShortUrlParams ( ) | ||
setUp ( ) | Set up the resource | |
tearDown ( ) | Tear down the resource | |
testCanCreateShortUrls ( $extension = null, $queryString = null, array $query = [] ) | ||
testCanNotAddShortUrlWhenImageDoesNotExist ( ) | ||
testWillAddAModelIfTheEventIsAShortUrlsEvent ( ) | ||
testWillGenerateANewIdIfTheGeneratedOneExists ( ) | ||
testWillNotAddAModelIfTheEventIsNotAShortUrlsEvent ( ) | ||
testWillReturn200OKIfTheShortUrlAlreadyExists ( ) | ||
testWillThrowAnExceptionWhenExtensionIsNotRecognized ( ) | ||
testWillThrowAnExceptionWhenImageIdentifierDoesNotMatch ( ) | ||
testWillThrowAnExceptionWhenImageIdentifierIsMissing ( ) | ||
testWillThrowAnExceptionWhenRequestBodyIsEmpty ( ) | ||
testWillThrowAnExceptionWhenRequestBodyIsInvalid ( ) | ||
testWillThrowAnExceptionWhenUserDoesNotMatch ( ) | ||
testWillThrowAnExceptionWhenUserMissing ( ) |
Method | Description | |
---|---|---|
getNewResource ( ) |
public testCanCreateShortUrls ( $extension = null, $queryString = null, array $query = [] ) | ||
$query | array |
public testCanNotAddShortUrlWhenImageDoesNotExist ( ) |
public testWillAddAModelIfTheEventIsAShortUrlsEvent ( ) |
public testWillThrowAnExceptionWhenUserDoesNotMatch ( ) |
public testWillThrowAnExceptionWhenUserMissing ( ) |