Skip to content

Commit

Permalink
Add assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
nanasess committed Feb 29, 2024
1 parent d00534b commit b6ef23f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/Eccube/Tests/Service/PluginServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,13 @@ public function testInstallPluginMinimum()
}
// 同じプラグインの二重インストールが蹴られるか

// --if-not-exists オプションの検証
try {
$this->service->install($tmpfile, 0, true);
} catch (\Eccube\Exception\PluginException $e) {
$this->fail('--if-not-exists オプションを指定した場合は例外が発生しない: '.$e->getMessage());
}

// アンインストールできるか
$this->assertTrue((bool) $plugin = $this->pluginRepository->findOneBy(['code' => $tmpname]));
$this->assertEquals(Constant::DISABLED, $plugin->isEnabled());
Expand Down

0 comments on commit b6ef23f

Please sign in to comment.