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 5d080cb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/Eccube/Tests/Service/PluginServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ public function testInstallPluginMinimum()
}
// 同じプラグインの二重インストールが蹴られるか

// --if-not-exists オプションの検証
$this->assertTrue($this->service->install($tmpfile, true), '--if-not-exists オプションを指定した場合は例外が発生しない');

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

0 comments on commit 5d080cb

Please sign in to comment.