xref: /webtrees/tests/app/Module/UpcomingAnniversariesModuleTest.php (revision 202c018b592d5a516e4a465dc6dc515f3be37399)
13763c3f2SGreg Roach<?php
23976b470SGreg Roach
33763c3f2SGreg Roach/**
43763c3f2SGreg Roach * webtrees: online genealogy
5d11be702SGreg Roach * Copyright (C) 2023 webtrees development team
63763c3f2SGreg Roach * This program is free software: you can redistribute it and/or modify
73763c3f2SGreg Roach * it under the terms of the GNU General Public License as published by
83763c3f2SGreg Roach * the Free Software Foundation, either version 3 of the License, or
93763c3f2SGreg Roach * (at your option) any later version.
103763c3f2SGreg Roach * This program is distributed in the hope that it will be useful,
113763c3f2SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of
123763c3f2SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
133763c3f2SGreg Roach * GNU General Public License for more details.
143763c3f2SGreg Roach * You should have received a copy of the GNU General Public License
1589f7189bSGreg Roach * along with this program. If not, see <https://www.gnu.org/licenses/>.
163763c3f2SGreg Roach */
17fcfa147eSGreg Roach
18e7f56f2aSGreg Roachdeclare(strict_types=1);
19e7f56f2aSGreg Roach
2084e2cf4eSGreg Roachnamespace Fisharebest\Webtrees\Module;
213763c3f2SGreg Roach
22b6f85d51SGreg Roachuse Fisharebest\Webtrees\Services\CalendarService;
233cfcc809SGreg Roachuse Fisharebest\Webtrees\TestCase;
24*202c018bSGreg Roachuse PHPUnit\Framework\Attributes\CoversClass;
253cfcc809SGreg Roach
26*202c018bSGreg Roach
27*202c018bSGreg Roach#[CoversClass(UpcomingAnniversariesModule::class)]
283cfcc809SGreg Roachclass UpcomingAnniversariesModuleTest extends TestCase
29c1010edaSGreg Roach{
30fbdb6287SGreg Roach    public function testModuleProperties(): void
31c1010edaSGreg Roach    {
32b6f85d51SGreg Roach        $calendar_service = $this->createStub(CalendarService::class);
33b6f85d51SGreg Roach
34b6f85d51SGreg Roach        $module = new UpcomingAnniversariesModule($calendar_service);
35b6f85d51SGreg Roach
36b6f85d51SGreg Roach        self::assertInstanceOf(ModuleBlockInterface::class, $module);
37b6f85d51SGreg Roach        self::assertTrue($module->loadAjax());
38b6f85d51SGreg Roach        self::assertTrue($module->isTreeBlock());
39b6f85d51SGreg Roach        self::assertTrue($module->isUserBlock());
403763c3f2SGreg Roach    }
413763c3f2SGreg Roach}
42