summaryrefslogtreecommitdiff
path: root/tests/app/Census/CensusColumnMotherBirthPlaceTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/app/Census/CensusColumnMotherBirthPlaceTest.php')
-rw-r--r--tests/app/Census/CensusColumnMotherBirthPlaceTest.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/app/Census/CensusColumnMotherBirthPlaceTest.php b/tests/app/Census/CensusColumnMotherBirthPlaceTest.php
index 71dcae85f1..7d604dcccd 100644
--- a/tests/app/Census/CensusColumnMotherBirthPlaceTest.php
+++ b/tests/app/Census/CensusColumnMotherBirthPlaceTest.php
@@ -20,6 +20,7 @@ namespace Fisharebest\Webtrees\Census;
use Fisharebest\Webtrees\Family;
use Fisharebest\Webtrees\Individual;
use Fisharebest\Webtrees\Place;
+use Illuminate\Support\Collection;
use Mockery;
/**
@@ -49,8 +50,8 @@ class CensusColumnMotherBirthPlaceTest extends \Fisharebest\Webtrees\TestCase
$placeParts = explode(', ', $place);
$placeMock = Mockery::mock(Place::class);
- $placeMock->shouldReceive('getGedcomName')->andReturn($place);
- $placeMock->shouldReceive('lastPart')->andReturn(end($placeParts));
+ $placeMock->shouldReceive('gedcomName')->andReturn($place);
+ $placeMock->shouldReceive('lastParts')->andReturn(new Collection($placeParts));
return $placeMock;
}