/** * @test */ public function removeReallyRemovesTheEntryFromTheDatabase() { $GLOBALS['TYPO3_DB']->expects($this->once())->method('exec_DELETEquery')->with('sys_registry', 'entry_namespace = \'tx_phpunit\' AND entry_key = \'someKey\''); $this->registry->remove('tx_phpunit', 'someKey'); }
/** * Disconnect the dropbox by removing the oAuth secret from the registry */ public function disconnectDropboxAction() { $this->registry->remove('tx_dlDropbox', 'oauth_tokens'); $this->flashMessageContainer->add('The dropbox was successfully disconnected.', 'Dropbox disconnected!', t3lib_FlashMessage::OK); $this->forward('show', 'Sync'); }