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/CensusOfFrance1891Test.php | |
| parent | 708e66987f7d6eed5675fea31f4074192e368cac (diff) | |
| download | webtrees-5e933c21f8006e675d1df8bcedc634ee61f4aec2.tar.gz webtrees-5e933c21f8006e675d1df8bcedc634ee61f4aec2.tar.bz2 webtrees-5e933c21f8006e675d1df8bcedc634ee61f4aec2.zip | |
Testing
Diffstat (limited to 'tests/app/Census/CensusOfFrance1891Test.php')
| -rw-r--r-- | tests/app/Census/CensusOfFrance1891Test.php | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/tests/app/Census/CensusOfFrance1891Test.php b/tests/app/Census/CensusOfFrance1891Test.php index e39b344667..44c679a5fb 100644 --- a/tests/app/Census/CensusOfFrance1891Test.php +++ b/tests/app/Census/CensusOfFrance1891Test.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 CensusOfFrance1891Test extends TestCase { $census = new CensusOfFrance1891(); - $this->assertSame('France', $census->censusPlace()); - $this->assertSame('15 JAN 1891', $census->censusDate()); + self::assertSame('France', $census->censusPlace()); + self::assertSame('15 JAN 1891', $census->censusDate()); } /** @@ -54,26 +54,26 @@ class CensusOfFrance1891Test extends TestCase $census = new CensusOfFrance1891(); $columns = $census->columns(); - $this->assertCount(6, $columns); - $this->assertInstanceOf(CensusColumnSurname::class, $columns[0]); - $this->assertInstanceOf(CensusColumnGivenNames::class, $columns[1]); - $this->assertInstanceOf(CensusColumnAge::class, $columns[2]); - $this->assertInstanceOf(CensusColumnNationality::class, $columns[3]); - $this->assertInstanceOf(CensusColumnOccupation::class, $columns[4]); - $this->assertInstanceOf(CensusColumnRelationToHead::class, $columns[5]); + self::assertCount(6, $columns); + self::assertInstanceOf(CensusColumnSurname::class, $columns[0]); + self::assertInstanceOf(CensusColumnGivenNames::class, $columns[1]); + self::assertInstanceOf(CensusColumnAge::class, $columns[2]); + self::assertInstanceOf(CensusColumnNationality::class, $columns[3]); + self::assertInstanceOf(CensusColumnOccupation::class, $columns[4]); + self::assertInstanceOf(CensusColumnRelationToHead::class, $columns[5]); - $this->assertSame('Noms', $columns[0]->abbreviation()); - $this->assertSame('Prénoms', $columns[1]->abbreviation()); - $this->assertSame('Âge', $columns[2]->abbreviation()); - $this->assertSame('Nationalité', $columns[3]->abbreviation()); - $this->assertSame('Profession', $columns[4]->abbreviation()); - $this->assertSame('Position', $columns[5]->abbreviation()); + self::assertSame('Noms', $columns[0]->abbreviation()); + self::assertSame('Prénoms', $columns[1]->abbreviation()); + self::assertSame('Âge', $columns[2]->abbreviation()); + self::assertSame('Nationalité', $columns[3]->abbreviation()); + self::assertSame('Profession', $columns[4]->abbreviation()); + self::assertSame('Position', $columns[5]->abbreviation()); - $this->assertSame('Noms de famille', $columns[0]->title()); - $this->assertSame('', $columns[1]->title()); - $this->assertSame('', $columns[2]->title()); - $this->assertSame('', $columns[3]->title()); - $this->assertSame('', $columns[4]->title()); - $this->assertSame('Position dans le ménage', $columns[5]->title()); + self::assertSame('Noms de famille', $columns[0]->title()); + self::assertSame('', $columns[1]->title()); + self::assertSame('', $columns[2]->title()); + self::assertSame('', $columns[3]->title()); + self::assertSame('', $columns[4]->title()); + self::assertSame('Position dans le ménage', $columns[5]->title()); } } |
