summaryrefslogtreecommitdiff
path: root/tests/app/Census/CensusColumnSexMFTest.php
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2020-12-30 09:13:04 +0000
committerGreg Roach <greg@subaqua.co.uk>2020-12-30 10:48:09 +0000
commit5e933c21f8006e675d1df8bcedc634ee61f4aec2 (patch)
treec9cc8c537163542486eff0cfdca70187589358b9 /tests/app/Census/CensusColumnSexMFTest.php
parent708e66987f7d6eed5675fea31f4074192e368cac (diff)
downloadwebtrees-5e933c21f8006e675d1df8bcedc634ee61f4aec2.tar.gz
webtrees-5e933c21f8006e675d1df8bcedc634ee61f4aec2.tar.bz2
webtrees-5e933c21f8006e675d1df8bcedc634ee61f4aec2.zip
Testing
Diffstat (limited to 'tests/app/Census/CensusColumnSexMFTest.php')
-rw-r--r--tests/app/Census/CensusColumnSexMFTest.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/app/Census/CensusColumnSexMFTest.php b/tests/app/Census/CensusColumnSexMFTest.php
index ab5209335a..15b443b762 100644
--- a/tests/app/Census/CensusColumnSexMFTest.php
+++ b/tests/app/Census/CensusColumnSexMFTest.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
@@ -35,14 +35,14 @@ class CensusColumnSexMFTest extends TestCase
*/
public function testMale(): void
{
- $individual = $this->createMock(Individual::class);
+ $individual = self::createMock(Individual::class);
$individual->method('sex')->willReturn('M');
- $census = $this->createMock(CensusInterface::class);
+ $census = self::createMock(CensusInterface::class);
$column = new CensusColumnSexMF($census, '', '');
- $this->assertSame('M', $column->generate($individual, $individual));
+ self::assertSame('M', $column->generate($individual, $individual));
}
/**
@@ -53,14 +53,14 @@ class CensusColumnSexMFTest extends TestCase
*/
public function testFeale(): void
{
- $individual = $this->createMock(Individual::class);
+ $individual = self::createMock(Individual::class);
$individual->method('sex')->willReturn('F');
- $census = $this->createMock(CensusInterface::class);
+ $census = self::createMock(CensusInterface::class);
$column = new CensusColumnSexMF($census, '', '');
- $this->assertSame('F', $column->generate($individual, $individual));
+ self::assertSame('F', $column->generate($individual, $individual));
}
/**
@@ -71,13 +71,13 @@ class CensusColumnSexMFTest extends TestCase
*/
public function testUnknownSex(): void
{
- $individual = $this->createMock(Individual::class);
+ $individual = self::createMock(Individual::class);
$individual->method('sex')->willReturn('U');
- $census = $this->createMock(CensusInterface::class);
+ $census = self::createMock(CensusInterface::class);
$column = new CensusColumnSexMF($census, '', '');
- $this->assertSame('', $column->generate($individual, $individual));
+ self::assertSame('', $column->generate($individual, $individual));
}
}