Code Duplication    Length = 14-17 lines in 3 locations

codeception/acceptance/EA10PluginCest.php 3 locations

@@ 585-598 (lines=14) @@
582
        return $this;
583
    }
584
585
    public function 有効化()
586
    {
587
        $this->ManagePage->ストアプラグイン_有効化($this->code);
588
589
        $this->initialized = true;
590
        $this->enabled = true;
591
592
        $this->検証();
593
594
        $this->em->refresh($this->Plugin);
595
        $this->I->assertTrue($this->Plugin->isInitialized(), '初期化されている');
596
        $this->I->assertTrue($this->Plugin->isEnabled(), '有効化されている');
597
598
        return $this;
599
    }
600
601
    public function 既に有効なものを有効化()
@@ 648-662 (lines=15) @@
645
        return $this;
646
    }
647
648
    public function 削除()
649
    {
650
        $this->ManagePage->ストアプラグイン_削除($this->code);
651
652
        $this->initialized = false;
653
        $this->enabled = false;
654
655
        $this->検証();
656
657
        $this->em->refresh($this->Plugin);
658
        $this->Plugin = $this->pluginRepository->findByCode($this->code);
659
        $this->I->assertNull($this->Plugin, '削除されている');
660
661
        return $this;
662
    }
663
664
    public function アップデート()
665
    {
@@ 753-769 (lines=17) @@
750
        return $this;
751
    }
752
753
    public function 削除()
754
    {
755
        $this->ManagePage->独自プラグイン_削除($this->code);
756
757
        $this->initialized = false;
758
        $this->enabled = false;
759
760
        $this->I->see('プラグインを削除しました。', PluginManagePage::完了メーッセージ);
761
762
        $this->検証();
763
764
        $this->em->refresh($this->Plugin);
765
        $this->Plugin = $this->pluginRepository->findByCode($this->code);
766
        $this->I->assertNull($this->Plugin, '削除されている');
767
768
        return $this;
769
    }
770
771
    public function アップデート()
772
    {