xref: /webtrees/tests/app/Census/CensusColumnReligionTest.php (revision e7f56f2af615447ab1a7646851f88b465ace9e04)
14c219c47SGreg Roach<?php
24c219c47SGreg Roach/**
34c219c47SGreg Roach * webtrees: online genealogy
41062a142SGreg Roach * Copyright (C) 2018 webtrees development team
54c219c47SGreg Roach * This program is free software: you can redistribute it and/or modify
64c219c47SGreg Roach * it under the terms of the GNU General Public License as published by
74c219c47SGreg Roach * the Free Software Foundation, either version 3 of the License, or
84c219c47SGreg Roach * (at your option) any later version.
94c219c47SGreg Roach * This program is distributed in the hope that it will be useful,
104c219c47SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of
114c219c47SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
124c219c47SGreg Roach * GNU General Public License for more details.
134c219c47SGreg Roach * You should have received a copy of the GNU General Public License
144c219c47SGreg Roach * along with this program. If not, see <http://www.gnu.org/licenses/>.
154c219c47SGreg Roach */
16*e7f56f2aSGreg Roachdeclare(strict_types=1);
17*e7f56f2aSGreg Roach
184c219c47SGreg Roachnamespace Fisharebest\Webtrees\Census;
194c219c47SGreg Roach
204c219c47SGreg Roachuse Mockery;
214c219c47SGreg Roach
224c219c47SGreg Roach/**
234c219c47SGreg Roach * Test harness for the class CensusColumnReligion
244c219c47SGreg Roach */
2584e2cf4eSGreg Roachclass CensusColumnReligionTest extends \Fisharebest\Webtrees\TestCase
26c1010edaSGreg Roach{
274c219c47SGreg Roach    /**
284c219c47SGreg Roach     * Delete mock objects
2952348eb8SGreg Roach     *
3052348eb8SGreg Roach     * @return void
314c219c47SGreg Roach     */
32c1010edaSGreg Roach    public function tearDown()
33c1010edaSGreg Roach    {
344c219c47SGreg Roach        Mockery::close();
354c219c47SGreg Roach    }
364c219c47SGreg Roach
374c219c47SGreg Roach    /**
3815d603e7SGreg Roach     * @covers \Fisharebest\Webtrees\Census\CensusColumnReligion
3915d603e7SGreg Roach     * @covers \Fisharebest\Webtrees\Census\AbstractCensusColumn
4052348eb8SGreg Roach     *
4152348eb8SGreg Roach     * @return void
424c219c47SGreg Roach     */
43c1010edaSGreg Roach    public function testReligion()
44c1010edaSGreg Roach    {
45c314ecc9SGreg Roach        $individual = Mockery::mock('Fisharebest\Webtrees\Individual');
464c219c47SGreg Roach
47c314ecc9SGreg Roach        $census = Mockery::mock('Fisharebest\Webtrees\Census\CensusInterface');
484c219c47SGreg Roach        $census->shouldReceive('censusDate')->andReturn('01 JUN 1860');
494c219c47SGreg Roach
504c219c47SGreg Roach        $column = new CensusColumnReligion($census, '', '');
514c219c47SGreg Roach
52342dcecdSGreg Roach        $this->assertSame('', $column->generate($individual, $individual));
534c219c47SGreg Roach    }
544c219c47SGreg Roach}
55