Skip to content
This repository was archived by the owner on Oct 26, 2024. It is now read-only.

Commit 64af4ac

Browse files
committed
pushed code coverage
1 parent 4157ec4 commit 64af4ac

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

src/Asm/Test/TestData.php

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,19 @@ public static function getYamlTimerConfigFile()
6262
example_timer_config_3:
6363
day: [ monday, tuesday, wednesday, thursday ] # works weekdays 00:00:00 - 23:59:59
6464
65+
example_timer_config_3.1:
66+
day: [ monday, tuesday, wednesday, thursday, friday, saturday, sunday ]
67+
6568
example_timer_config_4:
6669
day: [ monday ] # works only mondays
6770
time:
6871
- [ "01:05:00", "17:00:00" ] # from 01:05:00 to 17:00:00
6972
73+
example_timer_config_4.1:
74+
day: [ monday, tuesday, wednesday, thursday, friday, saturday, sunday ]
75+
time:
76+
- [ "01:05:00", "17:00:00" ] # from 01:05:00 to 17:00:00
77+
7078
example_timer_config_5:
7179
time:
7280
- [ "01:05:00", "17:00:00" ] # from 01:05:00 to 17:00:00
@@ -80,15 +88,19 @@ public static function getYamlTimerConfigFile()
8088
holiday:
8189
use_gerneral: true # if false, uses separate holidays conf
8290
additional: [ sub, 1 ] # add or subract n days to holiday to create range
83-
interval:
84-
- [ "16:00:00", "16:00:00" ] # start and end time
91+
interval: [ "16:00:00", "16:00:00" ] # start and end time
92+
93+
example_timer_config_7.1:
94+
holiday:
95+
use_gerneral: true
96+
additional: [ add, 1 ]
97+
interval: [ "16:00:00", "16:00:00" ] # start and end time
8598
8699
general_shipping_promise:
87100
holiday:
88101
use_general: true
89102
additional: [ sub, 1 ] # add or subract n days to holiday to create range
90-
interval:
91-
- [ "16:00:00", "16:00:00" ] # start and end time
103+
interval: [ "16:00:00", "16:00:00" ] # start and end time
92104
day: [ monday, tuesday, wednesday, thursday, friday, sunday ]
93105
94106
shipping_promise_sunday:

src/Asm/Tests/Timer/TimerTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,13 @@ public function testIsTimerActive(Timer $timer)
5858
$this->assertTrue(is_bool($timer->isTimerActive('example_timer_config_1')));
5959
$this->assertTrue(is_bool($timer->isTimerActive('example_timer_config_2')));
6060
$this->assertTrue(is_bool($timer->isTimerActive('example_timer_config_3')));
61+
$this->assertTrue(is_bool($timer->isTimerActive('example_timer_config_3.1')));
6162
$this->assertTrue(is_bool($timer->isTimerActive('example_timer_config_4')));
63+
$this->assertTrue(is_bool($timer->isTimerActive('example_timer_config_4.1')));
6264
$this->assertTrue(is_bool($timer->isTimerActive('example_timer_config_5')));
6365
$this->assertTrue(is_bool($timer->isTimerActive('example_timer_config_6')));
6466
$this->assertTrue(is_bool($timer->isTimerActive('example_timer_config_7')));
67+
$this->assertTrue(is_bool($timer->isTimerActive('example_timer_config_7.1')));
6568
$this->assertTrue(is_bool($timer->isTimerActive('general_shipping_promise')));
6669
}
6770

0 commit comments

Comments
 (0)