diff options
| author | Greg Roach <fisharebest@gmail.com> | 2015-09-25 18:39:16 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2015-09-26 16:20:37 +0100 |
| commit | ef21b467575956631eb5374fe4f2bfb94e69aaa9 (patch) | |
| tree | d6d535cdc6ea24cc091300612aa50c8a62d32c9d /tests/app/Census/CensusOfDenmark1921Test.php | |
| parent | db7d25eeb5ba43cdc3662cbee9ceabb8d61c7ab5 (diff) | |
| download | webtrees-ef21b467575956631eb5374fe4f2bfb94e69aaa9.tar.gz webtrees-ef21b467575956631eb5374fe4f2bfb94e69aaa9.tar.bz2 webtrees-ef21b467575956631eb5374fe4f2bfb94e69aaa9.zip | |
Census definitions
Diffstat (limited to 'tests/app/Census/CensusOfDenmark1921Test.php')
| -rw-r--r-- | tests/app/Census/CensusOfDenmark1921Test.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/app/Census/CensusOfDenmark1921Test.php b/tests/app/Census/CensusOfDenmark1921Test.php index 3f3e82dc0b..99a418a7ad 100644 --- a/tests/app/Census/CensusOfDenmark1921Test.php +++ b/tests/app/Census/CensusOfDenmark1921Test.php @@ -23,6 +23,8 @@ namespace Fisharebest\Webtrees\Census; class CensusOfDenmark1921Test extends \PHPUnit_Framework_TestCase { /** * Test the census place and date + * + * @covers Fisharebest\Webtrees\Census\CensusOfDenmark1921 */ public function testPlaceAndDate() { $census = new CensusOfDenmark1921; @@ -30,4 +32,22 @@ class CensusOfDenmark1921Test extends \PHPUnit_Framework_TestCase { $this->assertSame('Danmark', $census->censusPlace()); $this->assertSame('01 FEB 1921', $census->censusDate()); } + + /** + * Test the census columns + * + * @covers Fisharebest\Webtrees\Census\CensusOfDenmark1921 + */ + public function testColumns() { + $census = new CensusOfDenmark1921; + $columns = $census->columns(); + + $this->assertCount(6, $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]); + } } |
