diff options
| author | Greg Roach <fisharebest@gmail.com> | 2015-10-29 13:27:40 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2015-10-29 17:34:39 +0000 |
| commit | f3fa6d90bdc7225bdbe6300f0588c5935d1cc217 (patch) | |
| tree | 7f2428fee6b7c0d0e765d3f0815ac04d0881ddf7 /tests/app/Census/CensusOfUnitedStates1910Test.php | |
| parent | 0b18a98d2ceaeebc288d72a27a147055f7d6115d (diff) | |
| download | webtrees-f3fa6d90bdc7225bdbe6300f0588c5935d1cc217.tar.gz webtrees-f3fa6d90bdc7225bdbe6300f0588c5935d1cc217.tar.bz2 webtrees-f3fa6d90bdc7225bdbe6300f0588c5935d1cc217.zip | |
US Census
Diffstat (limited to 'tests/app/Census/CensusOfUnitedStates1910Test.php')
| -rw-r--r-- | tests/app/Census/CensusOfUnitedStates1910Test.php | 92 |
1 files changed, 88 insertions, 4 deletions
diff --git a/tests/app/Census/CensusOfUnitedStates1910Test.php b/tests/app/Census/CensusOfUnitedStates1910Test.php index 1b2cfeb04c..fca208c56f 100644 --- a/tests/app/Census/CensusOfUnitedStates1910Test.php +++ b/tests/app/Census/CensusOfUnitedStates1910Test.php @@ -43,11 +43,95 @@ class CensusOfUnitedStates1910Test extends \PHPUnit_Framework_TestCase { $census = new CensusOfUnitedStates1910; $columns = $census->columns(); - $this->assertCount(1, $columns); - $this->assertInstanceOf(CensusColumnNull::class, $columns[0]); + $this->assertCount(29, $columns); + $this->assertInstanceOf(CensusColumnSurnameGivenNameInitial::class, $columns[0]); + $this->assertInstanceOf(CensusColumnRelationToHead::class, $columns[1]); + $this->assertInstanceOf(CensusColumnSexMF::class, $columns[2]); + $this->assertInstanceOf(CensusColumnNull::class, $columns[3]); + $this->assertInstanceOf(CensusColumnAge::class, $columns[4]); + $this->assertInstanceOf(CensusColumnNull::class, $columns[5]); + $this->assertInstanceOf(CensusColumnYearsMarried::class, $columns[6]); + $this->assertInstanceOf(CensusColumnChildrenBornAlive::class, $columns[7]); + $this->assertInstanceOf(CensusColumnChildrenLiving::class, $columns[8]); + $this->assertInstanceOf(CensusColumnBirthPlaceSimple::class, $columns[9]); + $this->assertInstanceOf(CensusColumnFatherBirthPlaceSimple::class, $columns[10]); + $this->assertInstanceOf(CensusColumnFatherBirthPlaceSimple::class, $columns[11]); + $this->assertInstanceOf(CensusColumnNull::class, $columns[12]); + $this->assertInstanceOf(CensusColumnNull::class, $columns[13]); + $this->assertInstanceOf(CensusColumnNull::class, $columns[14]); + $this->assertInstanceOf(CensusColumnOccupation::class, $columns[15]); + $this->assertInstanceOf(CensusColumnNull::class, $columns[16]); + $this->assertInstanceOf(CensusColumnNull::class, $columns[17]); + $this->assertInstanceOf(CensusColumnNull::class, $columns[18]); + $this->assertInstanceOf(CensusColumnNull::class, $columns[19]); + $this->assertInstanceOf(CensusColumnNull::class, $columns[20]); + $this->assertInstanceOf(CensusColumnNull::class, $columns[21]); + $this->assertInstanceOf(CensusColumnNull::class, $columns[22]); + $this->assertInstanceOf(CensusColumnNull::class, $columns[23]); + $this->assertInstanceOf(CensusColumnNull::class, $columns[24]); + $this->assertInstanceOf(CensusColumnNull::class, $columns[25]); + $this->assertInstanceOf(CensusColumnNull::class, $columns[26]); + $this->assertInstanceOf(CensusColumnNull::class, $columns[27]); + $this->assertInstanceOf(CensusColumnNull::class, $columns[28]); - $this->assertSame('XXXX', $columns[0]->abbreviation()); + $this->assertSame('Name', $columns[0]->abbreviation()); + $this->assertSame('Relation', $columns[1]->abbreviation()); + $this->assertSame('Sex', $columns[2]->abbreviation()); + $this->assertSame('Race', $columns[3]->abbreviation()); + $this->assertSame('Age', $columns[4]->abbreviation()); + $this->assertSame('Condition', $columns[5]->abbreviation()); + $this->assertSame('Marr', $columns[6]->abbreviation()); + $this->assertSame('Chil', $columns[7]->abbreviation()); + $this->assertSame('Chil', $columns[8]->abbreviation()); + $this->assertSame('Birthplace', $columns[9]->abbreviation()); + $this->assertSame('Father’s birthplace', $columns[10]->abbreviation()); + $this->assertSame('Mother’s birthplace', $columns[11]->abbreviation()); + $this->assertSame('Imm', $columns[12]->abbreviation()); + $this->assertSame('Nat', $columns[13]->abbreviation()); + $this->assertSame('Language', $columns[14]->abbreviation()); + $this->assertSame('Occupation', $columns[15]->abbreviation()); + $this->assertSame('Ind', $columns[16]->abbreviation()); + $this->assertSame('Emp', $columns[17]->abbreviation()); + $this->assertSame('Unemployed', $columns[18]->abbreviation()); + $this->assertSame('Unemployed', $columns[19]->abbreviation()); + $this->assertSame('Read', $columns[20]->abbreviation()); + $this->assertSame('Write', $columns[21]->abbreviation()); + $this->assertSame('School', $columns[22]->abbreviation()); + $this->assertSame('Home', $columns[23]->abbreviation()); + $this->assertSame('Mort', $columns[24]->abbreviation()); + $this->assertSame('Farm', $columns[25]->abbreviation()); + $this->assertSame('CW', $columns[26]->abbreviation()); + $this->assertSame('Blind', $columns[27]->abbreviation()); + $this->assertSame('Deaf', $columns[28]->abbreviation()); - $this->assertSame('XXXX', $columns[0]->title()); + $this->assertSame('Name', $columns[0]->title()); + $this->assertSame('Relationship of each person to the head of the family', $columns[1]->title()); + $this->assertSame('Sex', $columns[2]->title()); + $this->assertSame('Color or race', $columns[3]->title()); + $this->assertSame('Age at last birthday', $columns[4]->title()); + $this->assertSame('Whether single, married, widowed, or divorced', $columns[5]->title()); + $this->assertSame('Number of years of present marriage', $columns[6]->title()); + $this->assertSame('Mother of how many children', $columns[7]->title()); + $this->assertSame('Number of these children living', $columns[8]->title()); + $this->assertSame('Place of birth of this person', $columns[9]->title()); + $this->assertSame('Place of birth of father of this person', $columns[10]->title()); + $this->assertSame('Place of birth of mother of this person', $columns[11]->title()); + $this->assertSame('Year of immigration to the United States', $columns[12]->title()); + $this->assertSame('Whether naturalized or alien', $columns[13]->title()); + $this->assertSame('Whether able to speak English, of if not, give language spoken', $columns[14]->title()); + $this->assertSame('Trade or profession of, or particular kind of work done by this person', $columns[15]->title()); + $this->assertSame('General nature of industry', $columns[16]->title()); + $this->assertSame('Whether an employer, employee, or work on own account', $columns[17]->title()); + $this->assertSame('Whether out of work on April 15, 1910', $columns[18]->title()); + $this->assertSame('Number of weeks out of work in 1909', $columns[19]->title()); + $this->assertSame('Whether able to read', $columns[20]->title()); + $this->assertSame('Whether able to write', $columns[21]->title()); + $this->assertSame('Attended school since September 1, 1909', $columns[22]->title()); + $this->assertSame('Owned or rented', $columns[23]->title()); + $this->assertSame('Owned free or mortgaged', $columns[24]->title()); + $this->assertSame('Farm or house', $columns[25]->title()); + $this->assertSame('Whether a survivor of the Union or Confederate Army or Navy', $columns[26]->title()); + $this->assertSame('Whether blind (both eyes)', $columns[27]->title()); + $this->assertSame('Whether deaf and dumb', $columns[28]->title()); } } |
