Skip to content

Commit

Permalink
Added: test for shipping week time over
Browse files Browse the repository at this point in the history
  • Loading branch information
JanGalek committed Apr 25, 2017
1 parent 731cde3 commit ea2a6be
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/Calendar/Dodani.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ class DodaniTest extends CalendarTestCase
$testTime10->setShippingTime(16, 20);
$shipping = $testTime10->getShippingDate();
Assert::equal('02.05.2016', $shipping->format('d.m.Y'), 'Time 15:25 to 16:20');

$testTime11 = new Calendar('25.4.2017 15:30');
Assert::equal(FALSE, $testTime11->timeBellow(15, 00), 'Time 15:30 bellow 15:00');

$testTime11->setShippingTime(15, 0);
$shipping = $testTime11->getShippingDate();
Assert::equal('27.04.2017', $shipping->format('d.m.Y'), 'Time 15:25 to 16:20');
}

public function testDodaniShipping2()
Expand All @@ -96,7 +103,7 @@ class DodaniTest extends CalendarTestCase

$testTime1->setShippingTime(10, 0);
$shipping = $testTime1->getShippingDate();
Assert::equal('20.04.2017', $shipping->format('d.m.Y'), 'Time 11:00 to 10:00');
Assert::equal('21.04.2017', $shipping->format('d.m.Y'), 'Time 11:00 to 10:00');

$testTime2 = new Calendar('21.4.2017 11:00');
$testTime2->setShippingTime(10, 0);
Expand Down

0 comments on commit ea2a6be

Please sign in to comment.