. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Module; use Fig\Http\Message\RequestMethodInterface; use Fisharebest\Webtrees\Services\CalendarService; use Fisharebest\Webtrees\TestCase; use Fisharebest\Webtrees\Tree; /** * Test harness for the class UpcomingAnniversariesModule * * @covers \Fisharebest\Webtrees\Module\UpcomingAnniversariesModule */ class UpcomingAnniversariesModuleTest extends TestCase { /** * @return void */ public function testModuleProperties(): void { $calendar_service = $this->createStub(CalendarService::class); $module = new UpcomingAnniversariesModule($calendar_service); self::assertInstanceOf(ModuleBlockInterface::class, $module); self::assertTrue($module->loadAjax()); self::assertTrue($module->isTreeBlock()); self::assertTrue($module->isUserBlock()); } }