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/CensusOfDenmark1787Test.php | |
| parent | 708e66987f7d6eed5675fea31f4074192e368cac (diff) | |
| download | webtrees-5e933c21f8006e675d1df8bcedc634ee61f4aec2.tar.gz webtrees-5e933c21f8006e675d1df8bcedc634ee61f4aec2.tar.bz2 webtrees-5e933c21f8006e675d1df8bcedc634ee61f4aec2.zip | |
Testing
Diffstat (limited to 'tests/app/Census/CensusOfDenmark1787Test.php')
| -rw-r--r-- | tests/app/Census/CensusOfDenmark1787Test.php | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/tests/app/Census/CensusOfDenmark1787Test.php b/tests/app/Census/CensusOfDenmark1787Test.php index d5e2e4f8cb..bfb6881b73 100644 --- a/tests/app/Census/CensusOfDenmark1787Test.php +++ b/tests/app/Census/CensusOfDenmark1787Test.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,8 +37,8 @@ class CensusOfDenmark1787Test extends TestCase { $census = new CensusOfDenmark1787(); - $this->assertSame('Danmark', $census->censusPlace()); - $this->assertSame('01 JUL 1787', $census->censusDate()); + self::assertSame('Danmark', $census->censusPlace()); + self::assertSame('01 JUL 1787', $census->censusDate()); } /** @@ -54,23 +54,23 @@ class CensusOfDenmark1787Test extends TestCase $census = new CensusOfDenmark1787(); $columns = $census->columns(); - $this->assertCount(5, $columns); - $this->assertInstanceOf(CensusColumnFullName::class, $columns[0]); - $this->assertInstanceOf(CensusColumnRelationToHead::class, $columns[1]); - $this->assertInstanceOf(CensusColumnAge::class, $columns[2]); - $this->assertInstanceOf(CensusColumnConditionDanish::class, $columns[3]); - $this->assertInstanceOf(CensusColumnOccupation::class, $columns[4]); + self::assertCount(5, $columns); + self::assertInstanceOf(CensusColumnFullName::class, $columns[0]); + self::assertInstanceOf(CensusColumnRelationToHead::class, $columns[1]); + self::assertInstanceOf(CensusColumnAge::class, $columns[2]); + self::assertInstanceOf(CensusColumnConditionDanish::class, $columns[3]); + self::assertInstanceOf(CensusColumnOccupation::class, $columns[4]); - $this->assertSame('Navn', $columns[0]->abbreviation()); - $this->assertSame('Stilling i familien', $columns[1]->abbreviation()); - $this->assertSame('Alder', $columns[2]->abbreviation()); - $this->assertSame('Civilstand', $columns[3]->abbreviation()); - $this->assertSame('Erhverv', $columns[4]->abbreviation()); + self::assertSame('Navn', $columns[0]->abbreviation()); + self::assertSame('Stilling i familien', $columns[1]->abbreviation()); + self::assertSame('Alder', $columns[2]->abbreviation()); + self::assertSame('Civilstand', $columns[3]->abbreviation()); + self::assertSame('Erhverv', $columns[4]->abbreviation()); - $this->assertSame('', $columns[0]->title()); - $this->assertSame('', $columns[1]->title()); - $this->assertSame('', $columns[2]->title()); - $this->assertSame('', $columns[3]->title()); - $this->assertSame('', $columns[4]->title()); + self::assertSame('', $columns[0]->title()); + self::assertSame('', $columns[1]->title()); + self::assertSame('', $columns[2]->title()); + self::assertSame('', $columns[3]->title()); + self::assertSame('', $columns[4]->title()); } } |
