Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

Commit

Permalink
III-1772 Make unit test naming more clear.
Browse files Browse the repository at this point in the history
When start date or end date are missing then the sub event also needs to be missing before a warning is logged.
  • Loading branch information
Luc Wollants committed May 4, 2017
1 parent 47f4f70 commit 1173fe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Event/EventJsonDocumentTransformerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public function it_does_not_index_a_date_range_for_events_with_opening_hours()
/**
* @test
*/
public function it_logs_missing_start_date()
public function it_logs_missing_start_date_when_sub_event_is_also_missing()
{
$original = file_get_contents(__DIR__ . '/data/original-without-start-date.json');
$originalDocument = new JsonDocument('23017cb7-e515-47b4-87c4-780735acc942', $original);
Expand All @@ -181,7 +181,7 @@ public function it_logs_missing_start_date()
/**
* @test
*/
public function it_logs_missing_end_date()
public function it_logs_missing_end_date_when_sub_event_is_also_missing()
{
$original = file_get_contents(__DIR__ . '/data/original-without-end-date.json');
$originalDocument = new JsonDocument('23017cb7-e515-47b4-87c4-780735acc942', $original);
Expand Down

0 comments on commit 1173fe8

Please sign in to comment.