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/CensusColumnBirthDayMonthYearTest.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests/app/Census/CensusColumnBirthDayMonthYearTest.php') diff --git a/tests/app/Census/CensusColumnBirthDayMonthYearTest.php b/tests/app/Census/CensusColumnBirthDayMonthYearTest.php index 932807513a..3f4f317ffd 100644 --- a/tests/app/Census/CensusColumnBirthDayMonthYearTest.php +++ b/tests/app/Census/CensusColumnBirthDayMonthYearTest.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 @@ -30,29 +30,29 @@ use Fisharebest\Webtrees\TestCase; class CensusColumnBirthDayMonthYearTest extends TestCase { /** - * @covers \Fisharebest\Webtrees\Census\CensusColumnBirthDayMonthSlashYearTest + * @covers \Fisharebest\Webtrees\Census\CensusColumnBirthDayMonthYearTest * @covers \Fisharebest\Webtrees\Census\AbstractCensusColumn * * @return void */ public function testGenerateColumn(): void { - $cal_date = $this->createMock(GregorianDate::class); + $cal_date = self::createMock(GregorianDate::class); $cal_date->method('format')->willReturn('30 Jun 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 CensusColumnBirthDayMonthYear($census, '', ''); - $this->assertSame('30 Jun 1832', $column->generate($individual, $individual)); + self::assertSame('30 Jun 1832', $column->generate($individual, $individual)); } } -- cgit v1.3