/** * @covers ::getCacheContexts */ public function testGetCacheContexts() { $module_handler = $this->prophesize(ModuleHandlerInterface::class); $plugin_manager = new TestPluginManager($this->namespaces, $this->expectedDefinitions, $module_handler->reveal(), NULL); $cache_contexts = $plugin_manager->getCacheContexts(); $this->assertInternalType('array', $cache_contexts); array_map(function ($cache_context) { $this->assertInternalType('string', $cache_context); }, $cache_contexts); }