From 5e933c21f8006e675d1df8bcedc634ee61f4aec2 Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Wed, 30 Dec 2020 09:13:04 +0000 Subject: Testing --- tests/app/Census/CensusColumnBirthDaySlashMonthYearTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/app/Census/CensusColumnBirthDaySlashMonthYearTest.php') 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)); } } -- cgit v1.3