@@ 618-631 (lines=14) @@ | ||
615 | return $this; |
|
616 | } |
|
617 | ||
618 | public function 無効化() |
|
619 | { |
|
620 | $this->ManagePage->ストアプラグイン_無効化($this->code); |
|
621 | ||
622 | $this->enabled = false; |
|
623 | ||
624 | $this->検証(); |
|
625 | ||
626 | $this->em->refresh($this->Plugin); |
|
627 | $this->I->assertTrue($this->Plugin->isInitialized(), '初期化されている'); |
|
628 | $this->I->assertFalse($this->Plugin->isEnabled(), '無効化されている'); |
|
629 | ||
630 | return $this; |
|
631 | } |
|
632 | ||
633 | public function 既に無効なものを無効化() |
|
634 | { |
|
@@ 633-646 (lines=14) @@ | ||
630 | return $this; |
|
631 | } |
|
632 | ||
633 | public function 既に無効なものを無効化() |
|
634 | { |
|
635 | $this->ManagePage->ストアプラグイン_無効化($this->code, '既に無効です。'); |
|
636 | ||
637 | $this->enabled = false; |
|
638 | ||
639 | $this->検証(); |
|
640 | ||
641 | $this->em->refresh($this->Plugin); |
|
642 | $this->I->assertTrue($this->Plugin->isInitialized(), '初期化されている'); |
|
643 | $this->I->assertFalse($this->Plugin->isEnabled(), '無効化されている'); |
|
644 | ||
645 | return $this; |
|
646 | } |
|
647 | ||
648 | public function 削除() |
|
649 | { |
|
@@ 724-736 (lines=13) @@ | ||
721 | return $this; |
|
722 | } |
|
723 | ||
724 | public function 有効化() |
|
725 | { |
|
726 | $this->ManagePage->独自プラグイン_有効化($this->code); |
|
727 | ||
728 | $this->enabled = true; |
|
729 | ||
730 | $this->検証(); |
|
731 | ||
732 | $this->em->refresh($this->Plugin); |
|
733 | $this->I->assertTrue($this->Plugin->isInitialized(), '初期化されている'); |
|
734 | $this->I->assertTrue($this->Plugin->isEnabled(), '有効化されている'); |
|
735 | return $this; |
|
736 | } |
|
737 | ||
738 | public function 無効化() |
|
739 | { |
|
@@ 738-751 (lines=14) @@ | ||
735 | return $this; |
|
736 | } |
|
737 | ||
738 | public function 無効化() |
|
739 | { |
|
740 | $this->ManagePage->独自プラグイン_無効化($this->code); |
|
741 | ||
742 | $this->enabled = false; |
|
743 | ||
744 | $this->検証(); |
|
745 | ||
746 | $this->em->refresh($this->Plugin); |
|
747 | $this->I->assertTrue($this->Plugin->isInitialized(), '初期化されている'); |
|
748 | $this->I->assertFalse($this->Plugin->isEnabled(), '無効化されている'); |
|
749 | ||
750 | return $this; |
|
751 | } |
|
752 | ||
753 | public function 削除() |
|
754 | { |
|
@@ 819-829 (lines=11) @@ | ||
816 | return $result; |
|
817 | } |
|
818 | ||
819 | public function 依存されているのが有効なのに無効化() |
|
820 | { |
|
821 | $this->ManagePage->ストアプラグイン_無効化($this->code, '「ホライゾン」を無効にする前に、「エンペラー」を無効にしてください。'); |
|
822 | ||
823 | $this->検証(); |
|
824 | ||
825 | $this->em->refresh($this->Plugin); |
|
826 | $this->I->assertTrue($this->Plugin->isInitialized(), '初期化されているはず'); |
|
827 | $this->I->assertTrue($this->Plugin->isEnabled(), '有効化されているはず'); |
|
828 | return $this; |
|
829 | } |
|
830 | ||
831 | public function 依存されているのが削除されていないのに削除() |
|
832 | { |
|
@@ 871-881 (lines=11) @@ | ||
868 | } |
|
869 | ||
870 | ||
871 | public function 依存より先に有効化() |
|
872 | { |
|
873 | $this->ManagePage->ストアプラグイン_有効化($this->code, '「ホライゾン」を先に有効化してください。'); |
|
874 | ||
875 | $this->検証(); |
|
876 | ||
877 | $this->em->refresh($this->Plugin); |
|
878 | $this->I->assertFalse($this->Plugin->isInitialized(), '初期化されていないはず'); |
|
879 | $this->I->assertFalse($this->Plugin->isEnabled(), '有効化されていないはず'); |
|
880 | return $this; |
|
881 | } |
|
882 | } |
|
883 | ||
884 | class Boomerang_Store extends Store_Plugin |