/** * @test */ public function installCallsSaveDefaultConfigurationWithExtensionKey() { $cacheManagerMock = $this->getMock('TYPO3\\CMS\\Core\\Cache\\CacheManager'); $cacheManagerMock->expects($this->once())->method('flushCachesInGroup'); $this->installMock->_set('cacheManager', $cacheManagerMock); $this->installMock->expects($this->once())->method('saveDefaultConfiguration')->with('dummy'); $this->installMock->install('dummy'); }