|
@@ 374-392 (lines=19) @@
|
| 371 |
|
$this->code = $code; |
| 372 |
|
} |
| 373 |
|
|
| 374 |
|
public function インストール() |
| 375 |
|
{ |
| 376 |
|
$this->publishPlugin($this->code.'-1.0.0.tgz'); |
| 377 |
|
/* |
| 378 |
|
* インストール |
| 379 |
|
*/ |
| 380 |
|
$this->ManagePage = PluginSearchPage::go($this->I) |
| 381 |
|
->入手する($this->code) |
| 382 |
|
->インストール(); |
| 383 |
|
|
| 384 |
|
$this->tableNotExists(); |
| 385 |
|
$this->columnNotExists(); |
| 386 |
|
|
| 387 |
|
$this->Plugin = $this->pluginRepository->findByCode($this->code); |
| 388 |
|
$this->I->assertFalse($this->Plugin->isInitialized(), '初期化されていない'); |
| 389 |
|
$this->I->assertFalse($this->Plugin->isEnabled(), '有効化されていない'); |
| 390 |
|
|
| 391 |
|
return $this; |
| 392 |
|
} |
| 393 |
|
|
| 394 |
|
public function 有効化() |
| 395 |
|
{ |
|
@@ 474-487 (lines=14) @@
|
| 471 |
|
return $this; |
| 472 |
|
} |
| 473 |
|
|
| 474 |
|
public function アップデート() |
| 475 |
|
{ |
| 476 |
|
$this->publishPlugin($this->code.'-1.0.1.tgz'); |
| 477 |
|
|
| 478 |
|
$this->I->reloadPage(); |
| 479 |
|
$this->ManagePage->ストアプラグイン_アップデート($this->code)->アップデート(); |
| 480 |
|
|
| 481 |
|
$this->em->refresh($this->Plugin); |
| 482 |
|
|
| 483 |
|
$this->I->assertEquals($this->initialized, $this->Plugin->isInitialized(), '初期化'); |
| 484 |
|
$this->I->assertEquals($this->enabled, $this->Plugin->isEnabled(), '有効/無効'); |
| 485 |
|
|
| 486 |
|
return $this; |
| 487 |
|
} |
| 488 |
|
|
| 489 |
|
private function publishPlugin($fileName) |
| 490 |
|
{ |
|
@@ 518-533 (lines=16) @@
|
| 515 |
|
$this->code = $code; |
| 516 |
|
} |
| 517 |
|
|
| 518 |
|
public function インストール() |
| 519 |
|
{ |
| 520 |
|
$this->ManagePage = PluginLocalInstallPage::go($this->I) |
| 521 |
|
->アップロード('plugins/'.$this->code.'-1.0.0.tgz'); |
| 522 |
|
|
| 523 |
|
$this->I->see('プラグインをインストールしました。', PluginManagePage::完了メーッセージ); |
| 524 |
|
|
| 525 |
|
$this->tableExists(); |
| 526 |
|
$this->columnExists(); |
| 527 |
|
|
| 528 |
|
$this->Plugin = $this->pluginRepository->findByCode($this->code); |
| 529 |
|
$this->I->assertTrue($this->Plugin->isInitialized(), '初期化されていない'); |
| 530 |
|
$this->I->assertFalse($this->Plugin->isEnabled(), '有効化されていない'); |
| 531 |
|
|
| 532 |
|
return $this; |
| 533 |
|
} |
| 534 |
|
|
| 535 |
|
public function 有効化() |
| 536 |
|
{ |