summaryrefslogtreecommitdiff
path: root/tests/app
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-03-05 07:27:29 +0000
committerGreg Roach <fisharebest@webtrees.net>2019-03-05 07:27:29 +0000
commitd5d589847982b4ed47de90592c05d01c42f71920 (patch)
tree377ca6ba7179d2e1e42b4d82ac9aa9f8c71ca5fd /tests/app
parentb2632b9d1f04f8c4f53fdcbe7fb4b1dceb5493fa (diff)
downloadwebtrees-d5d589847982b4ed47de90592c05d01c42f71920.tar.gz
webtrees-d5d589847982b4ed47de90592c05d01c42f71920.tar.bz2
webtrees-d5d589847982b4ed47de90592c05d01c42f71920.zip
Fix: #2300 - test for deleted modules ignores disabled modules
Diffstat (limited to 'tests/app')
-rw-r--r--tests/app/Services/ModuleServiceTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/app/Services/ModuleServiceTest.php b/tests/app/Services/ModuleServiceTest.php
index a5ff81ae08..29c55c17f5 100644
--- a/tests/app/Services/ModuleServiceTest.php
+++ b/tests/app/Services/ModuleServiceTest.php
@@ -110,14 +110,14 @@ class ModuleServiceTest extends TestCase
* @covers \Fisharebest\Webtrees\Services\ModuleService::configOnlyModules
* @return void
*/
- public function testconfigOnlyModules(): void
+ public function testOtherOnlyModules(): void
{
app()->instance(Tree::class, Tree::create('name', 'title'));
DB::table('module')->insert(['module_name' => 'not-a-module']);
$module_service = new ModuleService();
- $this->assertSame(2, $module_service->configOnlyModules()->count());
+ $this->assertSame(4, $module_service->otherModules()->count());
}
/**