Width/Height set/get tests

This commit is contained in:
Spike Ilacqua 2014-10-02 08:33:53 -06:00
parent 4e25283195
commit cf96ea0e18
1 changed files with 28 additions and 0 deletions

View File

@ -97,6 +97,34 @@ class SettingsTest extends \PHPUnit_Framework_TestCase
$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
*/