Width/Height set/get tests
This commit is contained in:
parent
4e25283195
commit
cf96ea0e18
|
|
@ -97,6 +97,34 @@ class SettingsTest extends \PHPUnit_Framework_TestCase
|
||||||
$this->assertEquals($iVal, $oSettings->getMarginRight());
|
$this->assertEquals($iVal, $oSettings->getMarginRight());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set/get page width
|
||||||
|
*/
|
||||||
|
public function testPageWidth()
|
||||||
|
{
|
||||||
|
// Section Settings
|
||||||
|
$oSettings = new Section();
|
||||||
|
|
||||||
|
$this->assertEquals(11906, $oSettings->getPageSizeW());
|
||||||
|
$iVal = rand(1, 1000);
|
||||||
|
$oSettings->setSettingValue('pageSizeW', $iVal);
|
||||||
|
$this->assertEquals($iVal, $oSettings->getPageSizeW());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set/get page height
|
||||||
|
*/
|
||||||
|
public function testPageHeight()
|
||||||
|
{
|
||||||
|
// Section Settings
|
||||||
|
$oSettings = new Section();
|
||||||
|
|
||||||
|
$this->assertEquals(16838, $oSettings->getPageSizeH());
|
||||||
|
$iVal = rand(1, 1000);
|
||||||
|
$oSettings->setSettingValue('pageSizeH', $iVal);
|
||||||
|
$this->assertEquals($iVal, $oSettings->getPageSizeH());
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set/get landscape orientation
|
* Set/get landscape orientation
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue