Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function rollback()
 {
     if ($this->wasDisabled) {
         $this->installInfo->addDisabledBindingUuid($this->uuid);
     } else {
         $this->installInfo->removeEnabledBindingUuid($this->uuid);
     }
 }
Ejemplo n.º 2
0
 public function testRemoveEnabledBindingUuidIgnoresUnknown()
 {
     $installInfo = new InstallInfo('vendor/package', '/path');
     $uuid = Uuid::uuid4();
     $installInfo->removeEnabledBindingUuid($uuid);
     $this->assertSame(array(), $installInfo->getEnabledBindingUuids());
 }