Skip to content

Commit

Permalink
versão 5.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bjverde committed Jan 18, 2024
1 parent 71f3664 commit ed0633b
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 29 deletions.
5 changes: 2 additions & 3 deletions FormDin5/lib/widget/FormDin5/helpers/FormDinHelper.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
class FormDinHelper
{

const FORMDIN_VERSION = '5.1.0';
const FORMDIN_VERSION = '5.1.1';
const ADIANTI_MIN_FORMDIN = '7.5.1';
const GRID_SIMPLE = 'GRID_SIMPLE';
const GRID_SCREEN_PAGINATION = 'GRID_SCREEN_PAGINATION';
Expand Down Expand Up @@ -408,5 +408,4 @@ public static function sizeWidthInPercent($value)
FormDinHelper::validateSizeWidthAndHeight($value);
return $value;
}

}
}
48 changes: 30 additions & 18 deletions FormDin5/tests/lib/widget/FormDin5/helpers/FormDinHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@

class FormDinHelperTest extends TestCase
{

public $formDinVersion = '5.1.1';
public $adiantiVersion = '7.5.1b2';

public function testVersion() {
$expected = '5.1.0';
$expected = $this->formDinVersion;
$result = FormDinHelper::version();
$this->assertEquals( $expected , $result);
}
Expand All @@ -71,32 +73,42 @@ public function testVersionMinimum_equal() {
$result = FormDinHelper::versionMinimum('5.0.0');
$this->assertEquals( $expected , $result);
}
//-----------------------------------------------------------------------------------
public function testAdiantiVersion() {
$expected = '7.5.1b.2';
$result = FormDinHelper::getAdiantiFrameWorkVersion();
$this->assertEquals( $expected , $result);
/**
* @doesNotPerformAssertions
*/
public function testAdianti_verifyFormDinMinimumVersion_ok() {
FormDinHelper::verifyFormDinMinimumVersion($this->formDinVersion);
}
public function testAdianti_verifyFormDinMinimumVersion_Exception() {
$this->expectException(DomainException::class);
FormDinHelper::verifyFormDinMinimumVersion('99.99.99');
}
/**
* @doesNotPerformAssertions
*/
public function testAdianti_setAdminMinimumVersionFrameWork_ok() {
FormDinHelper::setAdminMinimumVersionFrameWork('7.3.0');
}
public function testAdianti_setAdminMinimumVersionFrameWork_Exception() {
public function testAdianti_verifyMinimumVersionAdiantiFrameWorkToFormDin_ok() {
FormDinHelper::verifyMinimumVersionAdiantiFrameWorkToFormDin($this->formDinVersion);
}
public function testAdianti_verifyMinimumVersionAdiantiFrameWorkToFormDin_Exception() {
$this->expectException(DomainException::class);
FormDinHelper::setAdminMinimumVersionFrameWork('99.99.99');
FormDinHelper::verifyMinimumVersionAdiantiFrameWorkToFormDin('99.99.99');
}
/**
* @doesNotPerformAssertions
*/
public function testAdianti_setAdminSystemMinimumVersion_ok() {
FormDinHelper::setAdminSystemMinimumVersion('7.3.0');
}
public function testAdianti_setAdminSystemMinimumVersion_Exception() {
public function testAdianti_verifyMinimumVersionAdiantiFrameWorkToSystem_ok() {
FormDinHelper::verifyMinimumVersionAdiantiFrameWorkToSystem('7.3.0');
}
public function testAdianti_verifyMinimumVersionAdiantiFrameWorkToSystem_Exception() {
$this->expectException(DomainException::class);
FormDinHelper::setAdminSystemMinimumVersion('99.99.99');
}
FormDinHelper::verifyMinimumVersionAdiantiFrameWorkToSystem('99.99.99');
}
//-----------------------------------------------------------------------------------
public function testAdiantiVersion() {
$expected = $this->adiantiVersion;
$result = FormDinHelper::getAdiantiFrameWorkVersion();
$this->assertEquals( $expected , $result);
}
//-----------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------
public function testSetPropertyVo_noSet(){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
class FormDinHelper
{

const FORMDIN_VERSION = '5.1.0';
const FORMDIN_VERSION = '5.1.1';
const ADIANTI_MIN_FORMDIN = '7.5.1';
const GRID_SIMPLE = 'GRID_SIMPLE';
const GRID_SCREEN_PAGINATION = 'GRID_SCREEN_PAGINATION';
Expand Down Expand Up @@ -408,5 +408,4 @@ public static function sizeWidthInPercent($value)
FormDinHelper::validateSizeWidthAndHeight($value);
return $value;
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@

class FormDinHelperTest extends TestCase
{

public $formDinVersion = '5.1.1';
public $adiantiVersion = '7.5.1b2';

public function testVersion() {
$expected = '5.1.0';
$expected = $this->formDinVersion;
$result = FormDinHelper::version();
$this->assertEquals( $expected , $result);
}
Expand All @@ -75,7 +77,7 @@ public function testVersionMinimum_equal() {
* @doesNotPerformAssertions
*/
public function testAdianti_verifyFormDinMinimumVersion_ok() {
FormDinHelper::verifyFormDinMinimumVersion('5.1.0');
FormDinHelper::verifyFormDinMinimumVersion($this->formDinVersion);
}
public function testAdianti_verifyFormDinMinimumVersion_Exception() {
$this->expectException(DomainException::class);
Expand All @@ -85,7 +87,7 @@ public function testAdianti_verifyFormDinMinimumVersion_Exception() {
* @doesNotPerformAssertions
*/
public function testAdianti_verifyMinimumVersionAdiantiFrameWorkToFormDin_ok() {
FormDinHelper::verifyMinimumVersionAdiantiFrameWorkToFormDin('5.1.0');
FormDinHelper::verifyMinimumVersionAdiantiFrameWorkToFormDin($this->formDinVersion);
}
public function testAdianti_verifyMinimumVersionAdiantiFrameWorkToFormDin_Exception() {
$this->expectException(DomainException::class);
Expand All @@ -103,7 +105,7 @@ public function testAdianti_verifyMinimumVersionAdiantiFrameWorkToSystem_Excepti
}
//-----------------------------------------------------------------------------------
public function testAdiantiVersion() {
$expected = '7.5.1b.2';
$expected = $this->adiantiVersion;
$result = FormDinHelper::getAdiantiFrameWorkVersion();
$this->assertEquals( $expected , $result);
}
Expand Down

0 comments on commit ed0633b

Please sign in to comment.