summaryrefslogtreecommitdiff
path: root/tests/app/Census/CensusOfDenmark1921Test.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2015-10-06 10:06:01 +0100
committerGreg Roach <fisharebest@gmail.com>2015-10-06 10:06:01 +0100
commit101af0b4f69bbf5e23334866418f6f0c7529dcbc (patch)
tree4319934fb4958385a760dc507abe83259102bb0e /tests/app/Census/CensusOfDenmark1921Test.php
parent1bd0d052313c2053708c84258fdd3c9ffd04c273 (diff)
downloadwebtrees-101af0b4f69bbf5e23334866418f6f0c7529dcbc.tar.gz
webtrees-101af0b4f69bbf5e23334866418f6f0c7529dcbc.tar.bz2
webtrees-101af0b4f69bbf5e23334866418f6f0c7529dcbc.zip
Updated census definitions
Diffstat (limited to 'tests/app/Census/CensusOfDenmark1921Test.php')
-rw-r--r--tests/app/Census/CensusOfDenmark1921Test.php49
1 files changed, 32 insertions, 17 deletions
diff --git a/tests/app/Census/CensusOfDenmark1921Test.php b/tests/app/Census/CensusOfDenmark1921Test.php
index b3ef3ce21a..67cfef7edc 100644
--- a/tests/app/Census/CensusOfDenmark1921Test.php
+++ b/tests/app/Census/CensusOfDenmark1921Test.php
@@ -43,26 +43,41 @@ class CensusOfDenmark1921Test extends \PHPUnit_Framework_TestCase {
$census = new CensusOfDenmark1921;
$columns = $census->columns();
- $this->assertCount(6, $columns);
+ $this->assertCount(11, $columns);
$this->assertInstanceOf(CensusColumnFullName::class, $columns[0]);
$this->assertInstanceOf(CensusColumnAge::class, $columns[1]);
- $this->assertInstanceOf(CensusColumnCondition::class, $columns[2]);
- $this->assertInstanceOf(CensusColumnRelationToHead::class, $columns[3]);
- $this->assertInstanceOf(CensusColumnOccupation::class, $columns[4]);
- $this->assertInstanceOf(CensusColumnBirthPlace::class, $columns[5]);
+ $this->assertInstanceOf(CensusColumnSexMF::class, $columns[2]);
+ $this->assertInstanceOf(CensusColumnCondition::class, $columns[3]);
+ $this->assertInstanceOf(CensusColumnRelationToHead::class, $columns[4]);
+ $this->assertInstanceOf(CensusColumnOccupation::class, $columns[5]);
+ $this->assertInstanceOf(CensusColumnBirthPlace::class, $columns[6]);
+ $this->assertInstanceOf(CensusColumnNull::class, $columns[7]);
+ $this->assertInstanceOf(CensusColumnNull::class, $columns[8]);
+ $this->assertInstanceOf(CensusColumnNull::class, $columns[9]);
+ $this->assertInstanceOf(CensusColumnNull::class, $columns[10]);
- $this->assertSame('', $columns[0]->abbreviation());
- $this->assertSame('', $columns[1]->abbreviation());
- $this->assertSame('', $columns[2]->abbreviation());
- $this->assertSame('', $columns[3]->abbreviation());
- $this->assertSame('', $columns[4]->abbreviation());
- $this->assertSame('', $columns[5]->abbreviation());
+ $this->assertSame('TBC', $columns[0]->abbreviation());
+ $this->assertSame('TBC', $columns[1]->abbreviation());
+ $this->assertSame('TBC', $columns[2]->abbreviation());
+ $this->assertSame('TBC', $columns[3]->abbreviation());
+ $this->assertSame('TBC', $columns[4]->abbreviation());
+ $this->assertSame('TBC', $columns[5]->abbreviation());
+ $this->assertSame('TBC', $columns[6]->abbreviation());
+ $this->assertSame('TBC', $columns[7]->abbreviation());
+ $this->assertSame('TBC', $columns[8]->abbreviation());
+ $this->assertSame('TBC', $columns[9]->abbreviation());
+ $this->assertSame('TBC', $columns[10]->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());
- $this->assertSame('', $columns[5]->title());
+ $this->assertSame('To be confirmed', $columns[0]->title());
+ $this->assertSame('To be confirmed', $columns[1]->title());
+ $this->assertSame('To be confirmed', $columns[2]->title());
+ $this->assertSame('To be confirmed', $columns[3]->title());
+ $this->assertSame('To be confirmed', $columns[4]->title());
+ $this->assertSame('To be confirmed', $columns[5]->title());
+ $this->assertSame('To be confirmed', $columns[6]->title());
+ $this->assertSame('To be confirmed', $columns[7]->title());
+ $this->assertSame('To be confirmed', $columns[8]->title());
+ $this->assertSame('To be confirmed', $columns[9]->title());
+ $this->assertSame('To be confirmed', $columns[10]->title());
}
}