xref: /webtrees/tests/app/Census/CensusColumnConditionFrenchHommeTest.php (revision 8d0ebef0d075981bd943e8256e2c81a3b1e92b4b)
100225b98SGreg Roach<?php
200225b98SGreg Roach/**
300225b98SGreg Roach * webtrees: online genealogy
41062a142SGreg Roach * Copyright (C) 2018 webtrees development team
500225b98SGreg Roach * This program is free software: you can redistribute it and/or modify
600225b98SGreg Roach * it under the terms of the GNU General Public License as published by
700225b98SGreg Roach * the Free Software Foundation, either version 3 of the License, or
800225b98SGreg Roach * (at your option) any later version.
900225b98SGreg Roach * This program is distributed in the hope that it will be useful,
1000225b98SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of
1100225b98SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1200225b98SGreg Roach * GNU General Public License for more details.
1300225b98SGreg Roach * You should have received a copy of the GNU General Public License
1400225b98SGreg Roach * along with this program. If not, see <http://www.gnu.org/licenses/>.
1500225b98SGreg Roach */
16e7f56f2aSGreg Roachdeclare(strict_types=1);
17e7f56f2aSGreg Roach
1800225b98SGreg Roachnamespace Fisharebest\Webtrees\Census;
1900225b98SGreg Roach
2000225b98SGreg Roachuse Fisharebest\Webtrees\Date;
2100225b98SGreg Roachuse Mockery;
2200225b98SGreg Roach
2300225b98SGreg Roach/**
2400225b98SGreg Roach * Test harness for the class CensusColumnConditionFrenchHomme
2500225b98SGreg Roach */
2684e2cf4eSGreg Roachclass CensusColumnConditionFrenchHommeTest extends \Fisharebest\Webtrees\TestCase
27c1010edaSGreg Roach{
2800225b98SGreg Roach    /**
2900225b98SGreg Roach     * Delete mock objects
3052348eb8SGreg Roach     *
3152348eb8SGreg Roach     * @return void
3200225b98SGreg Roach     */
33c1010edaSGreg Roach    public function tearDown()
34c1010edaSGreg Roach    {
3500225b98SGreg Roach        Mockery::close();
3600225b98SGreg Roach    }
3700225b98SGreg Roach
3800225b98SGreg Roach    /**
3915d603e7SGreg Roach     * @covers \Fisharebest\Webtrees\Census\CensusColumnConditionFrenchHomme
4015d603e7SGreg Roach     * @covers \Fisharebest\Webtrees\Census\AbstractCensusColumnCondition
4152348eb8SGreg Roach     *
4252348eb8SGreg Roach     * @return void
4300225b98SGreg Roach     */
44c1010edaSGreg Roach    public function testNoSpouseFamiliesMale()
45c1010edaSGreg Roach    {
4600225b98SGreg Roach        $individual = Mockery::mock('Fisharebest\Webtrees\Individual');
4700225b98SGreg Roach        $individual->shouldReceive('getSex')->andReturn('M');
4813abd6f3SGreg Roach        $individual->shouldReceive('getSpouseFamilies')->andReturn([]);
4900225b98SGreg Roach        $individual->shouldReceive('getEstimatedBirthDate')->andReturn(new Date('1800'));
5000225b98SGreg Roach
5100225b98SGreg Roach        $census = Mockery::mock('Fisharebest\Webtrees\Census\CensusInterface');
5200225b98SGreg Roach        $census->shouldReceive('censusDate')->andReturn('30 JUN 1830');
5300225b98SGreg Roach
5400225b98SGreg Roach        $column = new CensusColumnConditionFrenchHomme($census, '', '');
5500225b98SGreg Roach
56342dcecdSGreg Roach        $this->assertSame('', $column->generate($individual, $individual));
5700225b98SGreg Roach    }
5800225b98SGreg Roach
5900225b98SGreg Roach    /**
6015d603e7SGreg Roach     * @covers \Fisharebest\Webtrees\Census\CensusColumnConditionFrenchHomme
6115d603e7SGreg Roach     * @covers \Fisharebest\Webtrees\Census\AbstractCensusColumnCondition
6252348eb8SGreg Roach     *
6352348eb8SGreg Roach     * @return void
6400225b98SGreg Roach     */
65c1010edaSGreg Roach    public function testNoSpouseFamiliesFemale()
66c1010edaSGreg Roach    {
6700225b98SGreg Roach        $individual = Mockery::mock('Fisharebest\Webtrees\Individual');
6800225b98SGreg Roach        $individual->shouldReceive('getSex')->andReturn('F');
6913abd6f3SGreg Roach        $individual->shouldReceive('getSpouseFamilies')->andReturn([]);
7000225b98SGreg Roach        $individual->shouldReceive('getEstimatedBirthDate')->andReturn(new Date('1800'));
7100225b98SGreg Roach
7200225b98SGreg Roach        $census = Mockery::mock('Fisharebest\Webtrees\Census\CensusInterface');
7300225b98SGreg Roach        $census->shouldReceive('censusDate')->andReturn('30 JUN 1830');
7400225b98SGreg Roach
7500225b98SGreg Roach        $column = new CensusColumnConditionFrenchHomme($census, '', '');
7600225b98SGreg Roach
77342dcecdSGreg Roach        $this->assertSame('', $column->generate($individual, $individual));
7800225b98SGreg Roach    }
7900225b98SGreg Roach
8000225b98SGreg Roach    /**
8115d603e7SGreg Roach     * @covers \Fisharebest\Webtrees\Census\CensusColumnConditionFrenchHomme
8215d603e7SGreg Roach     * @covers \Fisharebest\Webtrees\Census\AbstractCensusColumnCondition
8352348eb8SGreg Roach     *
8452348eb8SGreg Roach     * @return void
8500225b98SGreg Roach     */
86c1010edaSGreg Roach    public function testNoFamilyFactsMale()
87c1010edaSGreg Roach    {
8800225b98SGreg Roach        $family = Mockery::mock('Fisharebest\Webtrees\Family');
8900225b98SGreg Roach        $family->shouldReceive('getMarriageDate')->andReturn(new Date(''));
90*8d0ebef0SGreg Roach        $family->shouldReceive('facts')->with(['MARR'])->andReturn([]);
9100225b98SGreg Roach
9200225b98SGreg Roach        $individual = Mockery::mock('Fisharebest\Webtrees\Individual');
9313abd6f3SGreg Roach        $individual->shouldReceive('getSpouseFamilies')->andReturn([$family]);
942a6fda60SGreg Roach        $individual->shouldReceive('getEstimatedBirthDate')->andReturn(new Date('1800'));
952a6fda60SGreg Roach        $individual->shouldReceive('getSex')->andReturn('M');
9600225b98SGreg Roach
9700225b98SGreg Roach        $census = Mockery::mock('Fisharebest\Webtrees\Census\CensusInterface');
9800225b98SGreg Roach
9900225b98SGreg Roach        $column = new CensusColumnConditionFrenchHomme($census, '', '');
10000225b98SGreg Roach        $census->shouldReceive('censusDate')->andReturn('30 JUN 1830');
10100225b98SGreg Roach
102342dcecdSGreg Roach        $this->assertSame('', $column->generate($individual, $individual));
10300225b98SGreg Roach    }
10400225b98SGreg Roach
10500225b98SGreg Roach    /**
10615d603e7SGreg Roach     * @covers \Fisharebest\Webtrees\Census\CensusColumnConditionFrenchHomme
10715d603e7SGreg Roach     * @covers \Fisharebest\Webtrees\Census\AbstractCensusColumnCondition
10852348eb8SGreg Roach     *
10952348eb8SGreg Roach     * @return void
11000225b98SGreg Roach     */
111c1010edaSGreg Roach    public function testNoFamilyFactsFemale()
112c1010edaSGreg Roach    {
11300225b98SGreg Roach        $family = Mockery::mock('Fisharebest\Webtrees\Family');
11400225b98SGreg Roach        $family->shouldReceive('getMarriageDate')->andReturn(new Date(''));
115*8d0ebef0SGreg Roach        $family->shouldReceive('facts')->with(['MARR'])->andReturn([]);
116e76c0cf0SGreg Roach
117e76c0cf0SGreg Roach        $individual = Mockery::mock('Fisharebest\Webtrees\Individual');
11813abd6f3SGreg Roach        $individual->shouldReceive('getSpouseFamilies')->andReturn([$family]);
1192a6fda60SGreg Roach        $individual->shouldReceive('getEstimatedBirthDate')->andReturn(new Date('1800'));
1202a6fda60SGreg Roach        $individual->shouldReceive('getSex')->andReturn('F');
121e76c0cf0SGreg Roach
122e76c0cf0SGreg Roach        $census = Mockery::mock('Fisharebest\Webtrees\Census\CensusInterface');
123e76c0cf0SGreg Roach
124e76c0cf0SGreg Roach        $column = new CensusColumnConditionFrenchHomme($census, '', '');
125e76c0cf0SGreg Roach        $census->shouldReceive('censusDate')->andReturn('30 JUN 1830');
126e76c0cf0SGreg Roach
127342dcecdSGreg Roach        $this->assertSame('', $column->generate($individual, $individual));
128e76c0cf0SGreg Roach    }
129e76c0cf0SGreg Roach
130e76c0cf0SGreg Roach    /**
13115d603e7SGreg Roach     * @covers \Fisharebest\Webtrees\Census\CensusColumnConditionFrenchHomme
13215d603e7SGreg Roach     * @covers \Fisharebest\Webtrees\Census\AbstractCensusColumnCondition
13352348eb8SGreg Roach     *
13452348eb8SGreg Roach     * @return void
135e76c0cf0SGreg Roach     */
136c1010edaSGreg Roach    public function testSpouseDeadMale()
137c1010edaSGreg Roach    {
1382a6fda60SGreg Roach        $fact = Mockery::mock('Fisharebest\Webtrees\Fact');
1392a6fda60SGreg Roach
140e76c0cf0SGreg Roach        $spouse = Mockery::mock('Fisharebest\Webtrees\Individual');
141e76c0cf0SGreg Roach        $spouse->shouldReceive('getDeathDate')->andReturn(new Date('1820'));
142e76c0cf0SGreg Roach
143e76c0cf0SGreg Roach        $family = Mockery::mock('Fisharebest\Webtrees\Family');
144e76c0cf0SGreg Roach        $family->shouldReceive('getMarriageDate')->andReturn(new Date(''));
145*8d0ebef0SGreg Roach        $family->shouldReceive('facts')->with(['MARR'])->andReturn([$fact]);
146*8d0ebef0SGreg Roach        $family->shouldReceive('facts')->with(['DIV'])->andReturn([]);
147e76c0cf0SGreg Roach        $family->shouldReceive('getSpouse')->andReturn($spouse);
148e76c0cf0SGreg Roach
149e76c0cf0SGreg Roach        $individual = Mockery::mock('Fisharebest\Webtrees\Individual');
150e76c0cf0SGreg Roach        $individual->shouldReceive('getSex')->andReturn('M');
15113abd6f3SGreg Roach        $individual->shouldReceive('getSpouseFamilies')->andReturn([$family]);
152e76c0cf0SGreg Roach
153e76c0cf0SGreg Roach        $census = Mockery::mock('Fisharebest\Webtrees\Census\CensusInterface');
154e76c0cf0SGreg Roach
155e76c0cf0SGreg Roach        $column = new CensusColumnConditionFrenchHomme($census, '', '');
156e76c0cf0SGreg Roach        $census->shouldReceive('censusDate')->andReturn('30 JUN 1830');
157e76c0cf0SGreg Roach
158342dcecdSGreg Roach        $this->assertSame('', $column->generate($individual, $individual));
159e76c0cf0SGreg Roach    }
160e76c0cf0SGreg Roach
161e76c0cf0SGreg Roach    /**
16215d603e7SGreg Roach     * @covers \Fisharebest\Webtrees\Census\CensusColumnConditionFrenchHomme
16315d603e7SGreg Roach     * @covers \Fisharebest\Webtrees\Census\AbstractCensusColumnCondition
16452348eb8SGreg Roach     *
16552348eb8SGreg Roach     * @return void
166e76c0cf0SGreg Roach     */
167c1010edaSGreg Roach    public function testSpouseDeadFemale()
168c1010edaSGreg Roach    {
1692a6fda60SGreg Roach        $fact = Mockery::mock('Fisharebest\Webtrees\Fact');
1702a6fda60SGreg Roach
171e76c0cf0SGreg Roach        $spouse = Mockery::mock('Fisharebest\Webtrees\Individual');
172e76c0cf0SGreg Roach        $spouse->shouldReceive('getDeathDate')->andReturn(new Date('1820'));
173e76c0cf0SGreg Roach
174e76c0cf0SGreg Roach        $family = Mockery::mock('Fisharebest\Webtrees\Family');
175e76c0cf0SGreg Roach        $family->shouldReceive('getMarriageDate')->andReturn(new Date(''));
176*8d0ebef0SGreg Roach        $family->shouldReceive('facts')->with(['MARR'])->andReturn([$fact]);
177*8d0ebef0SGreg Roach        $family->shouldReceive('facts')->with(['DIV'])->andReturn([]);
178e76c0cf0SGreg Roach        $family->shouldReceive('getSpouse')->andReturn($spouse);
17900225b98SGreg Roach
18000225b98SGreg Roach        $individual = Mockery::mock('Fisharebest\Webtrees\Individual');
18100225b98SGreg Roach        $individual->shouldReceive('getSex')->andReturn('F');
18213abd6f3SGreg Roach        $individual->shouldReceive('getSpouseFamilies')->andReturn([$family]);
18300225b98SGreg Roach
18400225b98SGreg Roach        $census = Mockery::mock('Fisharebest\Webtrees\Census\CensusInterface');
18500225b98SGreg Roach
18600225b98SGreg Roach        $column = new CensusColumnConditionFrenchHomme($census, '', '');
18700225b98SGreg Roach        $census->shouldReceive('censusDate')->andReturn('30 JUN 1830');
18800225b98SGreg Roach
189342dcecdSGreg Roach        $this->assertSame('', $column->generate($individual, $individual));
19000225b98SGreg Roach    }
19100225b98SGreg Roach
19200225b98SGreg Roach    /**
19315d603e7SGreg Roach     * @covers \Fisharebest\Webtrees\Census\CensusColumnConditionFrenchHomme
19415d603e7SGreg Roach     * @covers \Fisharebest\Webtrees\Census\AbstractCensusColumnCondition
19552348eb8SGreg Roach     *
19652348eb8SGreg Roach     * @return void
19700225b98SGreg Roach     */
198c1010edaSGreg Roach    public function testNoFamilyUnmarriedMale()
199c1010edaSGreg Roach    {
20000225b98SGreg Roach        $family = Mockery::mock('Fisharebest\Webtrees\Family');
20100225b98SGreg Roach        $family->shouldReceive('getMarriageDate')->andReturn(new Date(''));
202*8d0ebef0SGreg Roach        $family->shouldReceive('facts')->with(['MARR'])->andReturn([]);
20300225b98SGreg Roach
20400225b98SGreg Roach        $individual = Mockery::mock('Fisharebest\Webtrees\Individual');
20500225b98SGreg Roach        $individual->shouldReceive('getSex')->andReturn('M');
20613abd6f3SGreg Roach        $individual->shouldReceive('getSpouseFamilies')->andReturn([$family]);
20700225b98SGreg Roach        $individual->shouldReceive('getEstimatedBirthDate')->andReturn(new Date('1800'));
20800225b98SGreg Roach
20900225b98SGreg Roach        $census = Mockery::mock('Fisharebest\Webtrees\Census\CensusInterface');
21000225b98SGreg Roach        $census->shouldReceive('censusDate')->andReturn('30 JUN 1830');
21100225b98SGreg Roach
21200225b98SGreg Roach        $column = new CensusColumnConditionFrenchHomme($census, '', '');
21300225b98SGreg Roach
214342dcecdSGreg Roach        $this->assertSame('', $column->generate($individual, $individual));
21500225b98SGreg Roach    }
21600225b98SGreg Roach
21700225b98SGreg Roach    /**
21815d603e7SGreg Roach     * @covers \Fisharebest\Webtrees\Census\CensusColumnConditionFrenchHomme
21915d603e7SGreg Roach     * @covers \Fisharebest\Webtrees\Census\AbstractCensusColumnCondition
22052348eb8SGreg Roach     *
22152348eb8SGreg Roach     * @return void
22200225b98SGreg Roach     */
223c1010edaSGreg Roach    public function testNoFamilyUnmarriedFemale()
224c1010edaSGreg Roach    {
22500225b98SGreg Roach        $family = Mockery::mock('Fisharebest\Webtrees\Family');
22600225b98SGreg Roach        $family->shouldReceive('getMarriageDate')->andReturn(new Date(''));
227*8d0ebef0SGreg Roach        $family->shouldReceive('facts')->with(['MARR'])->andReturn([]);
22800225b98SGreg Roach
22900225b98SGreg Roach        $individual = Mockery::mock('Fisharebest\Webtrees\Individual');
23000225b98SGreg Roach        $individual->shouldReceive('getSex')->andReturn('F');
23113abd6f3SGreg Roach        $individual->shouldReceive('getSpouseFamilies')->andReturn([$family]);
23200225b98SGreg Roach        $individual->shouldReceive('getEstimatedBirthDate')->andReturn(new Date('1800'));
23300225b98SGreg Roach
23400225b98SGreg Roach        $census = Mockery::mock('Fisharebest\Webtrees\Census\CensusInterface');
23500225b98SGreg Roach        $census->shouldReceive('censusDate')->andReturn('30 JUN 1830');
23600225b98SGreg Roach
23700225b98SGreg Roach        $column = new CensusColumnConditionFrenchHomme($census, '', '');
23800225b98SGreg Roach
239342dcecdSGreg Roach        $this->assertSame('', $column->generate($individual, $individual));
24000225b98SGreg Roach    }
24100225b98SGreg Roach
24200225b98SGreg Roach    /**
24315d603e7SGreg Roach     * @covers \Fisharebest\Webtrees\Census\CensusColumnConditionFrenchHomme
24415d603e7SGreg Roach     * @covers \Fisharebest\Webtrees\Census\AbstractCensusColumnCondition
24552348eb8SGreg Roach     *
24652348eb8SGreg Roach     * @return void
24700225b98SGreg Roach     */
248c1010edaSGreg Roach    public function testChildMale()
249c1010edaSGreg Roach    {
25000225b98SGreg Roach        $family = Mockery::mock('Fisharebest\Webtrees\Family');
25100225b98SGreg Roach        $family->shouldReceive('getMarriageDate')->andReturn(new Date(''));
252*8d0ebef0SGreg Roach        $family->shouldReceive('facts')->with(['MARR'])->andReturn([]);
25300225b98SGreg Roach
25400225b98SGreg Roach        $individual = Mockery::mock('Fisharebest\Webtrees\Individual');
25500225b98SGreg Roach        $individual->shouldReceive('getSex')->andReturn('M');
25613abd6f3SGreg Roach        $individual->shouldReceive('getSpouseFamilies')->andReturn([$family]);
25700225b98SGreg Roach        $individual->shouldReceive('getEstimatedBirthDate')->andReturn(new Date('1820'));
25800225b98SGreg Roach
25900225b98SGreg Roach        $census = Mockery::mock('Fisharebest\Webtrees\Census\CensusInterface');
26000225b98SGreg Roach        $census->shouldReceive('censusDate')->andReturn('30 JUN 1830');
26100225b98SGreg Roach
26200225b98SGreg Roach        $column = new CensusColumnConditionFrenchHomme($census, '', '');
26300225b98SGreg Roach
264342dcecdSGreg Roach        $this->assertSame('', $column->generate($individual, $individual));
26500225b98SGreg Roach    }
26600225b98SGreg Roach
26700225b98SGreg Roach    /**
26815d603e7SGreg Roach     * @covers \Fisharebest\Webtrees\Census\CensusColumnConditionFrenchHomme
26915d603e7SGreg Roach     * @covers \Fisharebest\Webtrees\Census\AbstractCensusColumnCondition
27052348eb8SGreg Roach     *
27152348eb8SGreg Roach     * @return void
27200225b98SGreg Roach     */
273c1010edaSGreg Roach    public function testChildFemale()
274c1010edaSGreg Roach    {
27500225b98SGreg Roach        $family = Mockery::mock('Fisharebest\Webtrees\Family');
27600225b98SGreg Roach        $family->shouldReceive('getMarriageDate')->andReturn(new Date(''));
277*8d0ebef0SGreg Roach        $family->shouldReceive('facts')->with(['MARR'])->andReturn([]);
27800225b98SGreg Roach
27900225b98SGreg Roach        $individual = Mockery::mock('Fisharebest\Webtrees\Individual');
28000225b98SGreg Roach        $individual->shouldReceive('getSex')->andReturn('F');
28113abd6f3SGreg Roach        $individual->shouldReceive('getSpouseFamilies')->andReturn([$family]);
28200225b98SGreg Roach        $individual->shouldReceive('getEstimatedBirthDate')->andReturn(new Date('1820'));
28300225b98SGreg Roach
28400225b98SGreg Roach        $census = Mockery::mock('Fisharebest\Webtrees\Census\CensusInterface');
28500225b98SGreg Roach        $census->shouldReceive('censusDate')->andReturn('30 JUN 1830');
28600225b98SGreg Roach
28700225b98SGreg Roach        $column = new CensusColumnConditionFrenchHomme($census, '', '');
28800225b98SGreg Roach
289342dcecdSGreg Roach        $this->assertSame('', $column->generate($individual, $individual));
29000225b98SGreg Roach    }
29100225b98SGreg Roach
29200225b98SGreg Roach    /**
29315d603e7SGreg Roach     * @covers \Fisharebest\Webtrees\Census\CensusColumnConditionFrenchHomme
29415d603e7SGreg Roach     * @covers \Fisharebest\Webtrees\Census\AbstractCensusColumnCondition
29552348eb8SGreg Roach     *
29652348eb8SGreg Roach     * @return void
29700225b98SGreg Roach     */
298c1010edaSGreg Roach    public function testDivorcedMale()
299c1010edaSGreg Roach    {
30000225b98SGreg Roach        $fact = Mockery::mock('Fisharebest\Webtrees\Fact');
30100225b98SGreg Roach
30200225b98SGreg Roach        $family = Mockery::mock('Fisharebest\Webtrees\Family');
30300225b98SGreg Roach        $family->shouldReceive('getMarriageDate')->andReturn(new Date(''));
304*8d0ebef0SGreg Roach        $family->shouldReceive('facts')->with(['MARR'])->andReturn([$fact]);
305*8d0ebef0SGreg Roach        $family->shouldReceive('facts')->with(['DIV'])->andReturn([$fact]);
30600225b98SGreg Roach
30700225b98SGreg Roach        $individual = Mockery::mock('Fisharebest\Webtrees\Individual');
30800225b98SGreg Roach        $individual->shouldReceive('getSex')->andReturn('M');
30913abd6f3SGreg Roach        $individual->shouldReceive('getSpouseFamilies')->andReturn([$family]);
31000225b98SGreg Roach
31100225b98SGreg Roach        $census = Mockery::mock('Fisharebest\Webtrees\Census\CensusInterface');
31200225b98SGreg Roach
31300225b98SGreg Roach        $column = new CensusColumnConditionFrenchHomme($census, '', '');
31400225b98SGreg Roach        $census->shouldReceive('censusDate')->andReturn('30 JUN 1830');
31500225b98SGreg Roach
316342dcecdSGreg Roach        $this->assertSame('1', $column->generate($individual, $individual));
31700225b98SGreg Roach    }
31800225b98SGreg Roach
31900225b98SGreg Roach    /**
32015d603e7SGreg Roach     * @covers \Fisharebest\Webtrees\Census\CensusColumnConditionFrenchHomme
32115d603e7SGreg Roach     * @covers \Fisharebest\Webtrees\Census\AbstractCensusColumnCondition
32252348eb8SGreg Roach     *
32352348eb8SGreg Roach     * @return void
32400225b98SGreg Roach     */
325c1010edaSGreg Roach    public function testDivorcedFemale()
326c1010edaSGreg Roach    {
32700225b98SGreg Roach        $fact = Mockery::mock('Fisharebest\Webtrees\Fact');
32800225b98SGreg Roach
32900225b98SGreg Roach        $family = Mockery::mock('Fisharebest\Webtrees\Family');
33000225b98SGreg Roach        $family->shouldReceive('getMarriageDate')->andReturn(new Date(''));
331*8d0ebef0SGreg Roach        $family->shouldReceive('facts')->with(['MARR'])->andReturn([$fact]);
332*8d0ebef0SGreg Roach        $family->shouldReceive('facts')->with(['DIV'])->andReturn([$fact]);
33300225b98SGreg Roach
33400225b98SGreg Roach        $individual = Mockery::mock('Fisharebest\Webtrees\Individual');
33500225b98SGreg Roach        $individual->shouldReceive('getSex')->andReturn('F');
33613abd6f3SGreg Roach        $individual->shouldReceive('getSpouseFamilies')->andReturn([$family]);
33700225b98SGreg Roach
33800225b98SGreg Roach        $census = Mockery::mock('Fisharebest\Webtrees\Census\CensusInterface');
33900225b98SGreg Roach
34000225b98SGreg Roach        $column = new CensusColumnConditionFrenchHomme($census, '', '');
34100225b98SGreg Roach        $census->shouldReceive('censusDate')->andReturn('30 JUN 1830');
34200225b98SGreg Roach
343342dcecdSGreg Roach        $this->assertSame('', $column->generate($individual, $individual));
34400225b98SGreg Roach    }
34500225b98SGreg Roach}
346