Commit graph

7 commits

Author SHA1 Message Date
1e78139333 Update talk date test
Update the test for updating a talk node as it was essentially doing the
same as the test for creating a new talk node.

The test now ensures that the talk is saved before adding an event, and
that the talk created date is different to the original created date as
well as that it matches the latest event date.
2020-05-31 21:27:55 +01:00
56f3434c4a Automatically order events when a talk is saved
To ensure that the event dates for a talk are always in the correct
order, and to make the editing experience easier, this change
automatically re-orders the events on a talk node to be based on the
event date.

Fixes #74
2020-05-31 20:56:28 +01:00
45fda0fed1 Refactor existing tests
References #74
2020-05-31 18:43:10 +01:00
165b6e8195 Refactor to use a Post class
References #78
2020-05-29 21:46:17 +01:00
bcfe01f62c Extract a base test case for talks tests 2020-05-19 17:14:57 +01:00
7e2bd98d93 Use Carbon for dates 2020-05-09 21:51:04 +01:00
7a9bf80a89 Automatically update the created date for talks
Automatically update the created dates for talk nodes so that they match
the most-future event. This means that the talks are ordered correctly
on the Talks page.
2020-05-09 02:16:25 +01:00