VuFind API Documentation

LoaderTest extends TestCase
in package

QR Code Loader Test Class

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link

Wiki

Table of Contents

$testTheme  : string
Theme to use for testing purposes.
testDefaultLoadingForBlankText()  : void
Test that requesting a blank QR code returns the fail image.
testDefaultLoadingForTooSmallImage()  : void
Test that requesting a too small image returns the fail image.
testUtterFailure()  : void
Test that failure to load even the baseline image causes an exception.
getLoader()  : Loader
Get a loader object to test.
getThemeDir()  : string
Get the theme directory.

Properties

$testTheme

Theme to use for testing purposes.

protected string $testTheme = 'bootstrap3'

Methods

testDefaultLoadingForBlankText()

Test that requesting a blank QR code returns the fail image.

public testDefaultLoadingForBlankText() : void
Return values
void

testDefaultLoadingForTooSmallImage()

Test that requesting a too small image returns the fail image.

public testDefaultLoadingForTooSmallImage() : void
Return values
void

testUtterFailure()

Test that failure to load even the baseline image causes an exception.

public testUtterFailure() : void
Return values
void

getLoader()

Get a loader object to test.

protected getLoader([array<string|int, mixed> $config = [] ][, ThemeInfo $theme = null ][, array<string|int, mixed>|bool $mock = false ]) : Loader
Parameters
$config : array<string|int, mixed> = []

Configuration

$theme : ThemeInfo = null

Theme info object (null to create default)

$mock : array<string|int, mixed>|bool = false

Array of functions to mock, or false for real object

Return values
Loader

getThemeDir()

Get the theme directory.

protected getThemeDir() : string
Return values
string

Search results