JPaginationObjectTest::testConstructor
This method tests the constructor.
This is a basic data driven test. It takes the data passed, runs the constructor and make sure the appropriate values get setup.
Signature
public function testConstructor(string
$text,
[integer
$prefix = '',
[integer
$base = null,
[string
$link = null,
[boolean
$active = false,
array
$expected]]]] )
Parameters
-
$text
- The link text.
-
$prefix
- The prefix used for request variables.
-
$base
- The number of rows as a base offset.
-
$link
- The link URL.
-
$active
- Flag whether the object is the 'active' page
-
$expected
- The expected results for the JPagination object
Returns
- void