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/CensusColumnBirthDaySlashMonthYearTest.php | |
| parent | 708e66987f7d6eed5675fea31f4074192e368cac (diff) | |
| download | webtrees-5e933c21f8006e675d1df8bcedc634ee61f4aec2.tar.gz webtrees-5e933c21f8006e675d1df8bcedc634ee61f4aec2.tar.bz2 webtrees-5e933c21f8006e675d1df8bcedc634ee61f4aec2.zip | |
Testing
Diffstat (limited to 'tests/app/Census/CensusColumnBirthDaySlashMonthYearTest.php')
| -rw-r--r-- | tests/app/Census/CensusColumnBirthDaySlashMonthYearTest.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/app/Census/CensusColumnBirthDaySlashMonthYearTest.php b/tests/app/Census/CensusColumnBirthDaySlashMonthYearTest.php index bf37ad89b2..3980976b64 100644 --- a/tests/app/Census/CensusColumnBirthDaySlashMonthYearTest.php +++ b/tests/app/Census/CensusColumnBirthDaySlashMonthYearTest.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,22 +37,22 @@ class CensusColumnBirthDaySlashMonthYearTest extends TestCase */ public function testGenerateColumn(): void { - $cal_date = $this->createMock(GregorianDate::class); + $cal_date = self::createMock(GregorianDate::class); $cal_date->method('format')->willReturn('30/6 1832'); - $date = $this->createMock(Date::class); + $date = self::createMock(Date::class); $date->method('minimumJulianDay')->willReturn(2390364); $date->method('maximumJulianDay')->willReturn(2390364); $date->method('minimumDate')->willReturn($cal_date); - $individual = $this->createMock(Individual::class); + $individual = self::createMock(Individual::class); $individual->method('getBirthDate')->willReturn($date); - $census = $this->createMock(CensusInterface::class); + $census = self::createMock(CensusInterface::class); $census->method('censusDate')->willReturn('30 JUN 1832'); $column = new CensusColumnBirthDaySlashMonthYear($census, '', ''); - $this->assertSame('30/6 1832', $column->generate($individual, $individual)); + self::assertSame('30/6 1832', $column->generate($individual, $individual)); } } |
