]> 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)
committerMason James <mtj@kohaaloha.com>
Sun, 30 Jul 2017 13:02:06 +0000 (01:02 +1200)
commitd6bad9bf154e974c58304b03ac9d8038d5e293f5
treea1fd0c17f00001bf17b78ba0bc415e6150e25a94
parenta0eb8d6dfb14c2b46e867c10026b5426db231b7e
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: Mason James <mtj@kohaaloha.com>
t/db_dependent/Serials/GetFictiveIssueNumber.t [new file with mode: 0644]
t/db_dependent/Serials/GetNextDate.t