summaryrefslogtreecommitdiff
path: root/tests/app/Census/CensusOfUnitedStates1930Test.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/app/Census/CensusOfUnitedStates1930Test.php')
-rw-r--r--tests/app/Census/CensusOfUnitedStates1930Test.php84
1 files changed, 36 insertions, 48 deletions
diff --git a/tests/app/Census/CensusOfUnitedStates1930Test.php b/tests/app/Census/CensusOfUnitedStates1930Test.php
index d315c12ef8..06926d1e3e 100644
--- a/tests/app/Census/CensusOfUnitedStates1930Test.php
+++ b/tests/app/Census/CensusOfUnitedStates1930Test.php
@@ -42,8 +42,8 @@ class CensusOfUnitedStates1930Test extends \PHPUnit_Framework_TestCase {
$census = new CensusOfUnitedStates1930;
$columns = $census->columns();
- $this->assertCount(32, $columns);
- $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnSurnameGivenNameInitial', $columns[0]);
+ $this->assertCount(28, $columns);
+ $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnFullName', $columns[0]);
$this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnRelationToHead', $columns[1]);
$this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnNull', $columns[2]);
$this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnNull', $columns[3]);
@@ -52,8 +52,8 @@ class CensusOfUnitedStates1930Test extends \PHPUnit_Framework_TestCase {
$this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnSexMF', $columns[6]);
$this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnNull', $columns[7]);
$this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnAge', $columns[8]);
- $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnNull', $columns[9]);
- $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnNull', $columns[10]);
+ $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnConditionUs', $columns[9]);
+ $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnAgeMarried', $columns[10]);
$this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnNull', $columns[11]);
$this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnNull', $columns[12]);
$this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnBirthPlaceSimple', $columns[13]);
@@ -63,51 +63,43 @@ class CensusOfUnitedStates1930Test extends \PHPUnit_Framework_TestCase {
$this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnNull', $columns[17]);
$this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnNull', $columns[18]);
$this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnNull', $columns[19]);
- $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnNull', $columns[20]);
+ $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnOccupation', $columns[20]);
$this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnNull', $columns[21]);
$this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnNull', $columns[22]);
- $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnOccupation', $columns[23]);
+ $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnNull', $columns[23]);
$this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnNull', $columns[24]);
$this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnNull', $columns[25]);
$this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnNull', $columns[26]);
$this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnNull', $columns[27]);
- $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnNull', $columns[28]);
- $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnNull', $columns[29]);
- $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnNull', $columns[30]);
- $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnNull', $columns[31]);
$this->assertSame('Name', $columns[0]->abbreviation());
$this->assertSame('Relation', $columns[1]->abbreviation());
$this->assertSame('Home', $columns[2]->abbreviation());
- $this->assertSame('Value/rent', $columns[3]->abbreviation());
+ $this->assertSame('V/R', $columns[3]->abbreviation());
$this->assertSame('Radio', $columns[4]->abbreviation());
$this->assertSame('Farm', $columns[5]->abbreviation());
$this->assertSame('Sex', $columns[6]->abbreviation());
$this->assertSame('Race', $columns[7]->abbreviation());
$this->assertSame('Age', $columns[8]->abbreviation());
- $this->assertSame('Condition', $columns[9]->abbreviation());
- $this->assertSame('Age married', $columns[10]->abbreviation());
+ $this->assertSame('Cond', $columns[9]->abbreviation());
+ $this->assertSame('AM', $columns[10]->abbreviation());
$this->assertSame('School', $columns[11]->abbreviation());
- $this->assertSame('Read/write', $columns[12]->abbreviation());
- $this->assertSame('Birthplace', $columns[13]->abbreviation());
- $this->assertSame('Father’s birthplace', $columns[14]->abbreviation());
- $this->assertSame('Mother’s birthplace', $columns[15]->abbreviation());
- $this->assertSame('Language', $columns[16]->abbreviation());
- $this->assertSame('?', $columns[17]->abbreviation());
- $this->assertSame('?', $columns[18]->abbreviation());
- $this->assertSame('?', $columns[19]->abbreviation());
- $this->assertSame('Imm', $columns[20]->abbreviation());
- $this->assertSame('Nat', $columns[21]->abbreviation());
- $this->assertSame('English', $columns[22]->abbreviation());
- $this->assertSame('Occupation', $columns[23]->abbreviation());
- $this->assertSame('Industry', $columns[24]->abbreviation());
- $this->assertSame('Code', $columns[25]->abbreviation());
- $this->assertSame('Emp', $columns[26]->abbreviation());
- $this->assertSame('Work', $columns[27]->abbreviation());
- $this->assertSame('Unemp', $columns[28]->abbreviation());
- $this->assertSame('Veteran', $columns[29]->abbreviation());
- $this->assertSame('War', $columns[30]->abbreviation());
- $this->assertSame('?', $columns[31]->abbreviation());
+ $this->assertSame('R/W', $columns[12]->abbreviation());
+ $this->assertSame('BP', $columns[13]->abbreviation());
+ $this->assertSame('FBP', $columns[14]->abbreviation());
+ $this->assertSame('MBP', $columns[15]->abbreviation());
+ $this->assertSame('Lang', $columns[16]->abbreviation());
+ $this->assertSame('Imm', $columns[17]->abbreviation());
+ $this->assertSame('Nat', $columns[18]->abbreviation());
+ $this->assertSame('Eng', $columns[19]->abbreviation());
+ $this->assertSame('Occupation', $columns[20]->abbreviation());
+ $this->assertSame('Industry', $columns[21]->abbreviation());
+ $this->assertSame('Code', $columns[22]->abbreviation());
+ $this->assertSame('Emp', $columns[23]->abbreviation());
+ $this->assertSame('Work', $columns[24]->abbreviation());
+ $this->assertSame('Unemp', $columns[25]->abbreviation());
+ $this->assertSame('Vet', $columns[26]->abbreviation());
+ $this->assertSame('War', $columns[27]->abbreviation());
$this->assertSame('Name', $columns[0]->title());
$this->assertSame('Relationship of each person to the head of the family', $columns[1]->title());
@@ -126,20 +118,16 @@ class CensusOfUnitedStates1930Test extends \PHPUnit_Framework_TestCase {
$this->assertSame('Place of birth of father', $columns[14]->title());
$this->assertSame('Place of birth of mother', $columns[15]->title());
$this->assertSame('Language spoken in home before coming to the United States', $columns[16]->title());
- $this->assertSame('Code', $columns[17]->title());
- $this->assertSame('Code', $columns[18]->title());
- $this->assertSame('Code', $columns[19]->title());
- $this->assertSame('Year of immigration to the United States', $columns[20]->title());
- $this->assertSame('Naturalization', $columns[21]->title());
- $this->assertSame('Whether able to speak English', $columns[22]->title());
- $this->assertSame('Trade, profession, or particular kind of work done', $columns[23]->title());
- $this->assertSame('Industry, business of establishment in which at work', $columns[24]->title());
- $this->assertSame('Industry code', $columns[25]->title());
- $this->assertSame('Class of worker', $columns[26]->title());
- $this->assertSame('Whether normally at work yesterday or the last regular working day', $columns[27]->title());
- $this->assertSame('If not, …', $columns[28]->title());
- $this->assertSame('Whether a veteran of U.S. military or …', $columns[29]->title());
- $this->assertSame('What war or …', $columns[30]->title());
- $this->assertSame('…', $columns[31]->title());
+ $this->assertSame('Year of immigration to the United States', $columns[17]->title());
+ $this->assertSame('Naturalization', $columns[18]->title());
+ $this->assertSame('Whether able to speak English', $columns[19]->title());
+ $this->assertSame('Trade, profession, or particular kind of work done', $columns[20]->title());
+ $this->assertSame('Industry, business of establishment in which at work', $columns[21]->title());
+ $this->assertSame('Industry code', $columns[22]->title());
+ $this->assertSame('Class of worker', $columns[23]->title());
+ $this->assertSame('Whether normally at work yesterday or the last regular working day', $columns[24]->title());
+ $this->assertSame('If not, …', $columns[25]->title());
+ $this->assertSame('Whether a veteran of U.S. military or …', $columns[26]->title());
+ $this->assertSame('What war or …', $columns[27]->title());
}
}