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 9681662 commit 72ebfb0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 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 Expand Up @@ -286,7 +289,7 @@ public function testInstallPluginWithBrokenManagerAfterInstall()
namespace Plugin\@@@@ ;
use Eccube\Plugin\AbstractPluginManager;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Psr\Container\ContainerInterface;
class PluginManager extends AbstractPluginManager
{
Expand Down Expand Up @@ -353,7 +356,7 @@ public function testInstallPluginWithManager()
namespace Plugin\@@@@ ;
use Eccube\Plugin\AbstractPluginManager;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Psr\Container\ContainerInterface;
class PluginManager extends AbstractPluginManager
{
Expand Down Expand Up @@ -556,7 +559,7 @@ public function testCreateEntityAndTrait()
namespace Plugin\@@@@ ;
use Eccube\Plugin\AbstractPluginManager;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Psr\Container\ContainerInterface;
class PluginManager extends AbstractPluginManager
{
Expand Down

0 comments on commit 72ebfb0

Please sign in to comment.