public function testGetProtectedEnrichmentKeys() { $model = new Admin_Model_EnrichmentKeys(); $config = new Zend_Config(array('enrichmentkey' => array('protected' => array('modules' => 'pkey1,pkey2', 'migration' => 'pkey3,pkey4')))); $model->setConfig($config); $protectedKeys = $model->getProtectedEnrichmentKeys(); $this->assertCount(4, $protectedKeys); $this->assertContains('pkey1', $protectedKeys); $this->assertContains('pkey2', $protectedKeys); $this->assertContains('pkey3', $protectedKeys); $this->assertContains('pkey4', $protectedKeys); $config = new Zend_Config(array('enrichmentkey' => array('protected' => array('migration' => 'pkey3,pkey4')))); $model->setConfig($config); $model->setProtectedEnrichmentKeys(null); $protectedKeys = $model->getProtectedEnrichmentKeys(); $this->assertCount(2, $protectedKeys); $this->assertContains('pkey3', $protectedKeys); $this->assertContains('pkey4', $protectedKeys); $config = new Zend_Config(array('enrichmentkey' => array('protected' => array('modules' => 'pkey1,pkey2')))); $model->setConfig($config); $model->setProtectedEnrichmentKeys(null); $protectedKeys = $model->getProtectedEnrichmentKeys(); $this->assertCount(2, $protectedKeys); $this->assertContains('pkey1', $protectedKeys); $this->assertContains('pkey2', $protectedKeys); }