Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Commit

Permalink
Fix inconsistent test data
Browse files Browse the repository at this point in the history
A lot of tests had a slightly different start and end date for events with calendar type single or multiple than they had as first and last date in their timespans. This corrects that.
  • Loading branch information
bertramakers committed Sep 10, 2020
1 parent e7d6ffb commit 9a6cc10
Show file tree
Hide file tree
Showing 75 changed files with 151 additions and 150 deletions.
4 changes: 2 additions & 2 deletions tests/CdbXmlDocument/samples/event.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
<timestamps>
<timestamp>
<date>2014-01-31</date>
<timestart>12:00:00</timestart>
<timestart>13:00:00</timestart>
<timeend>15:00:00</timeend>
</timestamp>
<timestamp>
<date>2014-02-20</date>
<timestart>12:00:00</timestart>
<timeend>15:00:00</timeend>
<timeend>16:00:00</timeend>
</timestamp>
</timestamps>
</calendar>
Expand Down
4 changes: 2 additions & 2 deletions tests/ReadModel/AbstractCdbXmlProjectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ public function entityDataProvider()
{
$timestamps = [
new Timestamp(
\DateTime::createFromFormat(\DateTime::ATOM, '2014-01-31T12:00:00+01:00'),
\DateTime::createFromFormat(\DateTime::ATOM, '2014-01-31T13:00:00+01:00'),
\DateTime::createFromFormat(\DateTime::ATOM, '2014-01-31T15:00:00+01:00')
),
new Timestamp(
\DateTime::createFromFormat(\DateTime::ATOM, '2014-02-20T12:00:00+01:00'),
\DateTime::createFromFormat(\DateTime::ATOM, '2014-02-20T15:00:00+01:00')
\DateTime::createFromFormat(\DateTime::ATOM, '2014-02-20T16:00:00+01:00')
),
];

Expand Down
4 changes: 2 additions & 2 deletions tests/ReadModel/OfferToCdbXmlProjectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2739,12 +2739,12 @@ private function getTimestamps()
{
return [
new Timestamp(
\DateTime::createFromFormat(\DateTime::ATOM, '2014-01-31T12:00:00+01:00'),
\DateTime::createFromFormat(\DateTime::ATOM, '2014-01-31T13:00:00+01:00'),
\DateTime::createFromFormat(\DateTime::ATOM, '2014-01-31T15:00:00+01:00')
),
new Timestamp(
\DateTime::createFromFormat(\DateTime::ATOM, '2014-02-20T12:00:00+01:00'),
\DateTime::createFromFormat(\DateTime::ATOM, '2014-02-20T15:00:00+01:00')
\DateTime::createFromFormat(\DateTime::ATOM, '2014-02-20T16:00:00+01:00')
),
];
}
Expand Down
4 changes: 2 additions & 2 deletions tests/ReadModel/RelationsToCdbXmlProjectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,12 +332,12 @@ public function createEvent($eventId, $theme = true, $contactPoint = false)
{
$timestamps = [
new Timestamp(
\DateTime::createFromFormat(\DateTime::ATOM, '2014-01-31T12:00:00+01:00'),
\DateTime::createFromFormat(\DateTime::ATOM, '2014-01-31T13:00:00+01:00'),
\DateTime::createFromFormat(\DateTime::ATOM, '2014-01-31T15:00:00+01:00')
),
new Timestamp(
\DateTime::createFromFormat(\DateTime::ATOM, '2014-02-20T12:00:00+01:00'),
\DateTime::createFromFormat(\DateTime::ATOM, '2014-02-20T15:00:00+01:00')
\DateTime::createFromFormat(\DateTime::ATOM, '2014-02-20T16:00:00+01:00')
),
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
<timestamps>
<timestamp>
<date>2014-01-31</date>
<timestart>12:00:00</timestart>
<timestart>13:00:00</timestart>
<timeend>15:00:00</timeend>
</timestamp>
<timestamp>
<date>2014-02-20</date>
<timestart>12:00:00</timestart>
<timeend>15:00:00</timeend>
<timeend>16:00:00</timeend>
</timestamp>
</timestamps>
</calendar>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
<timestamps>
<timestamp>
<date>2014-01-31</date>
<timestart>12:00:00</timestart>
<timestart>13:00:00</timestart>
<timeend>15:00:00</timeend>
</timestamp>
<timestamp>
<date>2014-02-20</date>
<timestart>12:00:00</timestart>
<timeend>15:00:00</timeend>
<timeend>16:00:00</timeend>
</timestamp>
</timestamps>
</calendar>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
<timestamps>
<timestamp>
<date>2014-01-31</date>
<timestart>12:00:00</timestart>
<timestart>13:00:00</timestart>
<timeend>15:00:00</timeend>
</timestamp>
<timestamp>
<date>2014-02-20</date>
<timestart>12:00:00</timestart>
<timeend>15:00:00</timeend>
<timeend>16:00:00</timeend>
</timestamp>
</timestamps>
</calendar>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
<timestamps>
<timestamp>
<date>2014-01-31</date>
<timestart>12:00:00</timestart>
<timestart>13:00:00</timestart>
<timeend>15:00:00</timeend>
</timestamp>
<timestamp>
<date>2014-02-20</date>
<timestart>12:00:00</timestart>
<timeend>15:00:00</timeend>
<timeend>16:00:00</timeend>
</timestamp>
</timestamps>
</calendar>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
<timestamps>
<timestamp>
<date>2014-01-31</date>
<timestart>12:00:00</timestart>
<timestart>13:00:00</timestart>
<timeend>15:00:00</timeend>
</timestamp>
<timestamp>
<date>2014-02-20</date>
<timestart>12:00:00</timestart>
<timeend>15:00:00</timeend>
<timeend>16:00:00</timeend>
</timestamp>
</timestamps>
</calendar>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
<timestamps>
<timestamp>
<date>2014-01-31</date>
<timestart>12:00:00</timestart>
<timestart>13:00:00</timestart>
<timeend>15:00:00</timeend>
</timestamp>
<timestamp>
<date>2014-02-20</date>
<timestart>12:00:00</timestart>
<timeend>15:00:00</timeend>
<timeend>16:00:00</timeend>
</timestamp>
</timestamps>
</calendar>
Expand Down
4 changes: 2 additions & 2 deletions tests/ReadModel/Repository/samples/event-copied-original.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
<timestamps>
<timestamp>
<date>2014-01-31</date>
<timestart>12:00:00</timestart>
<timestart>13:00:00</timestart>
<timeend>15:00:00</timeend>
</timestamp>
<timestamp>
<date>2014-02-20</date>
<timestart>12:00:00</timestart>
<timeend>15:00:00</timeend>
<timeend>16:00:00</timeend>
</timestamp>
</timestamps>
</calendar>
Expand Down
4 changes: 2 additions & 2 deletions tests/ReadModel/Repository/samples/event-deleted.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
<timestamps>
<timestamp>
<date>2014-01-31</date>
<timestart>12:00:00</timestart>
<timestart>13:00:00</timestart>
<timeend>15:00:00</timeend>
</timestamp>
<timestamp>
<date>2014-02-20</date>
<timestart>12:00:00</timestart>
<timeend>15:00:00</timeend>
<timeend>16:00:00</timeend>
</timestamp>
</timestamps>
</calendar>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
<timestamps>
<timestamp>
<date>2014-01-31</date>
<timestart>12:00:00</timestart>
<timestart>13:00:00</timestart>
<timeend>15:00:00</timeend>
</timestamp>
<timestamp>
<date>2014-02-20</date>
<timestart>12:00:00</timestart>
<timeend>15:00:00</timeend>
<timeend>16:00:00</timeend>
</timestamp>
</timestamps>
</calendar>
Expand Down
4 changes: 2 additions & 2 deletions tests/ReadModel/Repository/samples/event-imported.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
<timestamps>
<timestamp>
<date>2014-01-31</date>
<timestart>12:00:00</timestart>
<timestart>13:00:00</timestart>
<timeend>15:00:00</timeend>
</timestamp>
<timestamp>
<date>2014-02-20</date>
<timestart>12:00:00</timestart>
<timeend>15:00:00</timeend>
<timeend>16:00:00</timeend>
</timestamp>
</timestamps>
</calendar>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
<cdb:timestamps>
<cdb:timestamp>
<cdb:date>2014-01-31</cdb:date>
<cdb:timestart>12:00:00</cdb:timestart>
<cdb:timestart>13:00:00</cdb:timestart>
<cdb:timeend>15:00:00</cdb:timeend>
</cdb:timestamp>
<cdb:timestamp>
<cdb:date>2014-02-20</cdb:date>
<cdb:timestart>12:00:00</cdb:timestart>
<cdb:timeend>15:00:00</cdb:timeend>
<cdb:timeend>16:00:00</cdb:timeend>
</cdb:timestamp>
</cdb:timestamps>
</cdb:calendar>
Expand Down
4 changes: 2 additions & 2 deletions tests/ReadModel/Repository/samples/event-namespaced.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
<cdb:timestamps>
<cdb:timestamp>
<cdb:date>2014-01-31</cdb:date>
<cdb:timestart>12:00:00</cdb:timestart>
<cdb:timestart>13:00:00</cdb:timestart>
<cdb:timeend>15:00:00</cdb:timeend>
</cdb:timestamp>
<cdb:timestamp>
<cdb:date>2014-02-20</cdb:date>
<cdb:timestart>12:00:00</cdb:timestart>
<cdb:timeend>15:00:00</cdb:timeend>
<cdb:timeend>16:00:00</cdb:timeend>
</cdb:timestamp>
</cdb:timestamps>
</cdb:calendar>
Expand Down
4 changes: 2 additions & 2 deletions tests/ReadModel/Repository/samples/event-private.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
<timestamps>
<timestamp>
<date>2014-01-31</date>
<timestart>12:00:00</timestart>
<timestart>13:00:00</timestart>
<timeend>15:00:00</timeend>
</timestamp>
<timestamp>
<date>2014-02-20</date>
<timestart>12:00:00</timestart>
<timeend>15:00:00</timeend>
<timeend>16:00:00</timeend>
</timestamp>
</timestamps>
</calendar>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
<timestamps>
<timestamp>
<date>2014-01-31</date>
<timestart>12:00:00</timestart>
<timestart>13:00:00</timestart>
<timeend>15:00:00</timeend>
</timestamp>
<timestamp>
<date>2014-02-20</date>
<timestart>12:00:00</timestart>
<timeend>15:00:00</timeend>
<timeend>16:00:00</timeend>
</timestamp>
</timestamps>
</calendar>
Expand Down
4 changes: 2 additions & 2 deletions tests/ReadModel/Repository/samples/event-with-age-from.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
<timestamps>
<timestamp>
<date>2014-01-31</date>
<timestart>12:00:00</timestart>
<timestart>13:00:00</timestart>
<timeend>15:00:00</timeend>
</timestamp>
<timestamp>
<date>2014-02-20</date>
<timestart>12:00:00</timestart>
<timeend>15:00:00</timeend>
<timeend>16:00:00</timeend>
</timestamp>
</timestamps>
</calendar>
Expand Down
5 changes: 3 additions & 2 deletions tests/ReadModel/Repository/samples/event-with-age-to.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,19 @@
<category catid="0.50.6.0.0" type="eventtype">film</category>
<category catid="1.7.6.0.0" type="theme">Griezelfilm of horror</category>
</categories>
<agefrom>0</agefrom>
<ageto>18</ageto>
<calendar>
<timestamps>
<timestamp>
<date>2014-01-31</date>
<timestart>12:00:00</timestart>
<timestart>13:00:00</timestart>
<timeend>15:00:00</timeend>
</timestamp>
<timestamp>
<date>2014-02-20</date>
<timestart>12:00:00</timestart>
<timeend>15:00:00</timeend>
<timeend>16:00:00</timeend>
</timestamp>
</timestamps>
</calendar>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
<timestamps>
<timestamp>
<date>2014-01-31</date>
<timestart>12:00:00</timestart>
<timestart>13:00:00</timestart>
<timeend>15:00:00</timeend>
</timestamp>
<timestamp>
<date>2014-02-20</date>
<timestart>12:00:00</timestart>
<timeend>15:00:00</timeend>
<timeend>16:00:00</timeend>
</timestamp>
</timestamps>
</calendar>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
<timestamps>
<timestamp>
<date>2014-01-31</date>
<timestart>12:00:00</timestart>
<timestart>13:00:00</timestart>
<timeend>15:00:00</timeend>
</timestamp>
<timestamp>
<date>2014-02-20</date>
<timestart>12:00:00</timestart>
<timeend>15:00:00</timeend>
<timeend>16:00:00</timeend>
</timestamp>
</timestamps>
</calendar>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
<timestamps>
<timestamp>
<date>2014-01-31</date>
<timestart>12:00:00</timestart>
<timestart>13:00:00</timestart>
<timeend>15:00:00</timeend>
</timestamp>
<timestamp>
<date>2014-02-20</date>
<timestart>12:00:00</timestart>
<timeend>15:00:00</timeend>
<timeend>16:00:00</timeend>
</timestamp>
</timestamps>
</calendar>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
<timestamps>
<timestamp>
<date>2014-01-31</date>
<timestart>12:00:00</timestart>
<timestart>13:00:00</timestart>
<timeend>15:00:00</timeend>
</timestamp>
<timestamp>
<date>2014-02-20</date>
<timestart>12:00:00</timestart>
<timeend>15:00:00</timeend>
<timeend>16:00:00</timeend>
</timestamp>
</timestamps>
</calendar>
Expand Down

0 comments on commit 9a6cc10

Please sign in to comment.