Latest updates from IceHrmPro
This commit is contained in:
24
test/unit/CalenderToolsUnit.php
Normal file
24
test/unit/CalenderToolsUnit.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
namespace Test\Unit;
|
||||
|
||||
use Utils\CalendarTools;
|
||||
|
||||
class CalenderToolsUnit extends \TestTemplate
|
||||
{
|
||||
protected function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
}
|
||||
|
||||
public function testGetYearFromDate()
|
||||
{
|
||||
$date = '2019-08-12';
|
||||
self::assertEquals('2019', CalendarTools::getYearFromDate($date));
|
||||
}
|
||||
|
||||
public function testAssignYearToDate()
|
||||
{
|
||||
$date = '2019-08-12';
|
||||
self::assertEquals('2017-08-12', CalendarTools::assignYearToDate($date, 2017));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user