diff options
| author | Greg Roach <fisharebest@gmail.com> | 2021-04-12 19:03:27 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2021-04-12 19:03:27 +0100 |
| commit | 59500b5bcd75f28519c0e0c45715abeaef3a3d80 (patch) | |
| tree | 2c9604569c28e74c03e52db1cc0d702d67ad883a /tests | |
| parent | ba885b46bd7632f5cdec264538959d0cf87c2221 (diff) | |
| download | webtrees-59500b5bcd75f28519c0e0c45715abeaef3a3d80.tar.gz webtrees-59500b5bcd75f28519c0e0c45715abeaef3a3d80.tar.bz2 webtrees-59500b5bcd75f28519c0e0c45715abeaef3a3d80.zip | |
Testing
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/app/Services/ModuleServiceTest.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/app/Services/ModuleServiceTest.php b/tests/app/Services/ModuleServiceTest.php index 293f9de6ae..81b32bbb92 100644 --- a/tests/app/Services/ModuleServiceTest.php +++ b/tests/app/Services/ModuleServiceTest.php @@ -23,6 +23,7 @@ use Fisharebest\Webtrees\Module\ModuleAnalyticsInterface; use Fisharebest\Webtrees\Module\ModuleBlockInterface; use Fisharebest\Webtrees\Module\ModuleChartInterface; use Fisharebest\Webtrees\Module\ModuleConfigInterface; +use Fisharebest\Webtrees\Module\ModuleCustomInterface; use Fisharebest\Webtrees\Module\ModuleDataFixInterface; use Fisharebest\Webtrees\Module\ModuleInterface; use Fisharebest\Webtrees\Module\ModuleMenuInterface; @@ -113,7 +114,11 @@ class ModuleServiceTest extends TestCase $module_service = new ModuleService(); - self::assertSame(3, $module_service->otherModules()->count()); + // Ignore any custom modules that happen to be installed in the development environment. + $modules = $module_service->otherModules() + ->filter(fn (ModuleInterface $module): bool => !$module instanceof ModuleCustomInterface); + + self::assertSame(3, $modules->count()); } /** |
