public function testRemoveComponentRestrictionWithValidComponentRestriction() { $this->autocomplete->addComponentRestriction(AutocompleteComponentRestriction::COUNTRY, 'foo'); $this->autocomplete->removeComponentRestriction(AutocompleteComponentRestriction::COUNTRY); $this->assertFalse($this->autocomplete->hasComponentRestriction(AutocompleteComponentRestriction::COUNTRY)); }