VuFind API Documentation

PreviewTest extends TestCase
in package

Preview Test Class

Tags
category

VuFind

author

Sudharma Kellampalli skellamp@villanova.edu

license

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

link

Wiki

Table of Contents

isActiveProvider()  : array<string|int, mixed>
Data provider for testIsActive.
testGetDescription()  : void
Test getting Description.
testisActive()  : void
Test if the tab is active.
testisVisible()  : void
Test if the tab is initially visible.
testsupportsAjax()  : void
Test if the tab can be loaded via AJAX.
getPreview()  : Preview
Get a configured Preview object.

Methods

isActiveProvider()

Data provider for testIsActive.

public static isActiveProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>

testGetDescription()

Test getting Description.

public testGetDescription() : void
Return values
void

testisActive()

Test if the tab is active.

public testisActive(bool $enable, bool $expectedResult) : void
Parameters
$enable : bool

Enable the Preview tab

$expectedResult : bool

Expected return value from isActive

Tags
dataProvider

isActiveProvider

Return values
void

testisVisible()

Test if the tab is initially visible.

public testisVisible() : void
Return values
void

testsupportsAjax()

Test if the tab can be loaded via AJAX.

public testsupportsAjax() : void
Return values
void

getPreview()

Get a configured Preview object.

protected getPreview([bool $active = false ]) : Preview
Parameters
$active : bool = false

Is this tab active?

Return values
Preview

Search results