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/CensusOfDenmark1787Test.php | 38 ++++++++++++++-------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'tests/app/Census/CensusOfDenmark1787Test.php') 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()); } } -- cgit v1.3