/** * Test Disable Snippet */ public function testDisableSnippet() { $this->helper->appendSnippet('test', 'hanger-snippet/test', ['foo' => 'ABC']); $this->assertArrayHasKey('test', $this->helper->getEnabledSnippets()); $this->assertArrayNotHasKey('test', $this->helper->getDisabledSnippets()); $this->helper->setDisabled('test'); $this->assertArrayNotHasKey('test', $this->helper->getEnabledSnippets()); $this->assertArrayHasKey('test', $this->helper->getDisabledSnippets()); }