summaryrefslogtreecommitdiff
path: root/tests/app/Census/CensusColumnBirthDaySlashMonthYearTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/app/Census/CensusColumnBirthDaySlashMonthYearTest.php')
-rw-r--r--tests/app/Census/CensusColumnBirthDaySlashMonthYearTest.php12
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));
}
}