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; 24202c018bSGreg Roachuse PHPUnit\Framework\Attributes\CoversClass; 253cfcc809SGreg Roach 26202c018bSGreg Roach#[CoversClass(UpcomingAnniversariesModule::class)] 273cfcc809SGreg Roachclass UpcomingAnniversariesModuleTest extends TestCase 28c1010edaSGreg Roach{ 29fbdb6287SGreg Roach public function testModuleProperties(): void 30c1010edaSGreg Roach { 31*62ff2f18SGreg Roach $calendar_service = $this->createMock(CalendarService::class); 32b6f85d51SGreg Roach 33b6f85d51SGreg Roach $module = new UpcomingAnniversariesModule($calendar_service); 34b6f85d51SGreg Roach 35b6f85d51SGreg Roach self::assertInstanceOf(ModuleBlockInterface::class, $module); 36b6f85d51SGreg Roach self::assertTrue($module->loadAjax()); 37b6f85d51SGreg Roach self::assertTrue($module->isTreeBlock()); 38b6f85d51SGreg Roach self::assertTrue($module->isUserBlock()); 393763c3f2SGreg Roach } 403763c3f2SGreg Roach} 41