public function testEnableBindingDoesNothingIfAlreadyEnabled() { $this->initDefaultManager(); $this->packageFile1->addTypeDescriptor(new BindingTypeDescriptor('my/type')); $this->packageFile1->addBindingDescriptor($binding = new BindingDescriptor('/path', 'my/type')); $this->installInfo1->addEnabledBindingUuid($binding->getUuid()); $this->discovery->expects($this->never())->method('bind'); $this->packageFileStorage->expects($this->never())->method('saveRootPackageFile'); $this->manager->enableBinding($binding->getUuid()); $this->assertTrue($binding->isEnabled()); }