diff options
Diffstat (limited to 'tests/app/Census/CensusColumnBirthDayTest.php')
| -rw-r--r-- | tests/app/Census/CensusColumnBirthDayTest.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/app/Census/CensusColumnBirthDayTest.php b/tests/app/Census/CensusColumnBirthDayTest.php index affb859312..765f17bd2a 100644 --- a/tests/app/Census/CensusColumnBirthDayTest.php +++ b/tests/app/Census/CensusColumnBirthDayTest.php @@ -2,7 +2,7 @@ /** * webtrees: online genealogy - * Copyright (C) 2016 webtrees development team + * Copyright (C) 2017 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 @@ -28,7 +28,7 @@ class CensusColumnBirthDayTest extends \PHPUnit_Framework_TestCase { public function tearDown() { Mockery::close(); } - + /** * @covers Fisharebest\Webtrees\Census\CensusColumnBirthDay * @covers Fisharebest\Webtrees\Census\AbstractCensusColumn @@ -36,18 +36,18 @@ class CensusColumnBirthDayTest extends \PHPUnit_Framework_TestCase { public function testGenerateColumn() { $cal_date = Mockery::mock('Fisharebest\Webtrees\Date\CalendarDate'); $cal_date->shouldReceive('format')->andReturn('30'); - + $date = Mockery::mock('Fisharebest\Webtrees\Date'); $date->shouldReceive('minimumDate')->andReturn($cal_date); - + $individual = Mockery::mock('Fisharebest\Webtrees\Individual'); $individual->shouldReceive('getEstimatedBirthDate')->andReturn($date); - + $census = Mockery::mock('Fisharebest\Webtrees\Census\CensusInterface'); $census->shouldReceive('censusDate')->andReturn('30 JUN 1832'); - + $column = new CensusColumnBirthDay($census, '', ''); - + $this->assertSame('30', $column->generate($individual)); } -}
\ No newline at end of file +} |
