]> git.koha-community.org Git - koha.git/commit
Bug 18356: Extend GetNextDate.t, add GetFictiveIssueNumber.t (unit=year)
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 11 May 2017 08:47:22 +0000 (10:47 +0200)
committerKatrin Fischer <katrin.fischer.83@web.de>
Thu, 29 Jun 2017 20:27:06 +0000 (22:27 +0200)
commitc310e428693e9f0c846090a7dd953fce7f5d8e14
treef97fb19f3afbb5f233ac8ef36e4ee44b93e78924
parent7fe57c48eb63127c7f2c0fda592100971f3898b8
Bug 18356: Extend GetNextDate.t, add GetFictiveIssueNumber.t (unit=year)

This patch deals with tests for yearly frequencies.

Adjust/extend GetNextDate.t:
[1] Adjust mixup of units/issues in a description.
[2] Add testing +2 years on 29-2 of leap year for freq 1 issue/2 years.
[3] Add tests for freq 9 issues/year.

Add GetFictiveIssueNumber.t:
[1] Two subtests are provided for irregular frequencies (very trivial) and
    for year frequencies (with four specific test cases).

Test plan:
[1] Run t/db_dependent/Serials/GetNextDate.t
[2] Run t/db_dependent/Serials/GetFictiveIssueNumber.t

Note: Without the second patch both tests should fail. This shows the need
of the adjustments in the second patch.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 285f6bd945373c06633b2c42621d754d93c37903)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 1d30b33e7e7a352743208960efcf6f1f26a07853)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
t/db_dependent/Serials/GetFictiveIssueNumber.t [new file with mode: 0644]
t/db_dependent/Serials/GetNextDate.t