diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2020-12-30 09:13:04 +0000 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2020-12-30 10:48:09 +0000 |
| commit | 5e933c21f8006e675d1df8bcedc634ee61f4aec2 (patch) | |
| tree | c9cc8c537163542486eff0cfdca70187589358b9 /tests/app/Census/CensusColumnBirthDayTest.php | |
| parent | 708e66987f7d6eed5675fea31f4074192e368cac (diff) | |
| download | webtrees-5e933c21f8006e675d1df8bcedc634ee61f4aec2.tar.gz webtrees-5e933c21f8006e675d1df8bcedc634ee61f4aec2.tar.bz2 webtrees-5e933c21f8006e675d1df8bcedc634ee61f4aec2.zip | |
Testing
Diffstat (limited to 'tests/app/Census/CensusColumnBirthDayTest.php')
| -rw-r--r-- | tests/app/Census/CensusColumnBirthDayTest.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/app/Census/CensusColumnBirthDayTest.php b/tests/app/Census/CensusColumnBirthDayTest.php index d26ef06b01..e24b3c166f 100644 --- a/tests/app/Census/CensusColumnBirthDayTest.php +++ b/tests/app/Census/CensusColumnBirthDayTest.php @@ -2,7 +2,7 @@ /** * webtrees: online genealogy - * Copyright (C) 2019 webtrees development team + * Copyright (C) 2020 webtrees development team * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or @@ -37,20 +37,20 @@ class CensusColumnBirthDayTest extends TestCase */ public function testGenerateColumn(): void { - $cal_date = $this->createMock(GregorianDate::class); + $cal_date = self::createMock(GregorianDate::class); $cal_date->method('format')->willReturn('30'); - $date = $this->createMock(Date::class); + $date = self::createMock(Date::class); $date->method('minimumDate')->willReturn($cal_date); - $individual = $this->createMock(Individual::class); + $individual = self::createMock(Individual::class); $individual->method('getEstimatedBirthDate')->willReturn($date); - $census = $this->createMock(CensusInterface::class); + $census = self::createMock(CensusInterface::class); $census->method('censusDate')->willReturn('30 JUN 1832'); $column = new CensusColumnBirthDay($census, '', ''); - $this->assertSame('30', $column->generate($individual, $individual)); + self::assertSame('30', $column->generate($individual, $individual)); } } |
