| @@ 394-408 (lines=15) @@ | ||
| 391 | return $this; |
|
| 392 | } |
|
| 393 | ||
| 394 | public function 有効化() |
|
| 395 | { |
|
| 396 | $this->ManagePage->ストアプラグイン_有効化($this->code); |
|
| 397 | ||
| 398 | $this->tableExists(); |
|
| 399 | $this->columnExists(); |
|
| 400 | ||
| 401 | $this->em->refresh($this->Plugin); |
|
| 402 | $this->I->assertTrue($this->Plugin->isInitialized(), '初期化されている'); |
|
| 403 | $this->I->assertTrue($this->Plugin->isEnabled(), '有効化されている'); |
|
| 404 | ||
| 405 | $this->initialized = true; |
|
| 406 | $this->enabled = true; |
|
| 407 | return $this; |
|
| 408 | } |
|
| 409 | ||
| 410 | public function 既に有効なものを有効化() |
|
| 411 | { |
|
| @@ 410-426 (lines=17) @@ | ||
| 407 | return $this; |
|
| 408 | } |
|
| 409 | ||
| 410 | public function 既に有効なものを有効化() |
|
| 411 | { |
|
| 412 | $this->ManagePage->ストアプラグイン_有効化($this->code, '既に有効です。'); |
|
| 413 | ||
| 414 | $this->tableExists(); |
|
| 415 | $this->columnExists(); |
|
| 416 | ||
| 417 | $this->em->refresh($this->Plugin); |
|
| 418 | $this->I->assertTrue($this->Plugin->isInitialized(), '初期化されている'); |
|
| 419 | $this->I->assertTrue($this->Plugin->isEnabled(), '有効化されている'); |
|
| 420 | ||
| 421 | $this->initialized = true; |
|
| 422 | $this->enabled = true; |
|
| 423 | ||
| 424 | ||
| 425 | return $this; |
|
| 426 | } |
|
| 427 | ||
| 428 | public function 無効化() |
|
| 429 | { |
|
| @@ 428-442 (lines=15) @@ | ||
| 425 | return $this; |
|
| 426 | } |
|
| 427 | ||
| 428 | public function 無効化() |
|
| 429 | { |
|
| 430 | $this->ManagePage->ストアプラグイン_無効化($this->code); |
|
| 431 | ||
| 432 | $this->tableExists(); |
|
| 433 | $this->columnExists(); |
|
| 434 | ||
| 435 | $this->em->refresh($this->Plugin); |
|
| 436 | $this->I->assertTrue($this->Plugin->isInitialized(), '初期化されている'); |
|
| 437 | $this->I->assertFalse($this->Plugin->isEnabled(), '無効化されている'); |
|
| 438 | ||
| 439 | $this->enabled = false; |
|
| 440 | ||
| 441 | return $this; |
|
| 442 | } |
|
| 443 | ||
| 444 | public function 既に無効なものを無効化() |
|
| 445 | { |
|
| @@ 444-458 (lines=15) @@ | ||
| 441 | return $this; |
|
| 442 | } |
|
| 443 | ||
| 444 | public function 既に無効なものを無効化() |
|
| 445 | { |
|
| 446 | $this->ManagePage->ストアプラグイン_無効化($this->code, '既に無効です。'); |
|
| 447 | ||
| 448 | $this->tableExists(); |
|
| 449 | $this->columnExists(); |
|
| 450 | ||
| 451 | $this->em->refresh($this->Plugin); |
|
| 452 | $this->I->assertTrue($this->Plugin->isInitialized(), '初期化されている'); |
|
| 453 | $this->I->assertFalse($this->Plugin->isEnabled(), '無効化されている'); |
|
| 454 | ||
| 455 | $this->enabled = false; |
|
| 456 | ||
| 457 | return $this; |
|
| 458 | } |
|
| 459 | ||
| 460 | public function 削除() |
|
| 461 | { |
|
| @@ 535-548 (lines=14) @@ | ||
| 532 | return $this; |
|
| 533 | } |
|
| 534 | ||
| 535 | public function 有効化() |
|
| 536 | { |
|
| 537 | $this->ManagePage->独自プラグイン_有効化($this->code); |
|
| 538 | ||
| 539 | $this->tableExists(); |
|
| 540 | $this->columnExists(); |
|
| 541 | ||
| 542 | $this->em->refresh($this->Plugin); |
|
| 543 | $this->I->assertTrue($this->Plugin->isInitialized(), '初期化されている'); |
|
| 544 | $this->I->assertTrue($this->Plugin->isEnabled(), '有効化されている'); |
|
| 545 | ||
| 546 | $this->enabled = true; |
|
| 547 | return $this; |
|
| 548 | } |
|
| 549 | ||
| 550 | public function 無効化() |
|
| 551 | { |
|
| @@ 550-564 (lines=15) @@ | ||
| 547 | return $this; |
|
| 548 | } |
|
| 549 | ||
| 550 | public function 無効化() |
|
| 551 | { |
|
| 552 | $this->ManagePage->独自プラグイン_無効化($this->code); |
|
| 553 | ||
| 554 | $this->tableExists(); |
|
| 555 | $this->columnExists(); |
|
| 556 | ||
| 557 | $this->em->refresh($this->Plugin); |
|
| 558 | $this->I->assertTrue($this->Plugin->isInitialized(), '初期化されている'); |
|
| 559 | $this->I->assertFalse($this->Plugin->isEnabled(), '無効化されている'); |
|
| 560 | ||
| 561 | $this->enabled = false; |
|
| 562 | ||
| 563 | return $this; |
|
| 564 | } |
|
| 565 | ||
| 566 | public function 削除() |
|
| 567 | { |
|