->
willReturnCallback(function D
$id) { return $this->pluginInstances
[$id];
});
$this->defaultPluginCollection =
new DefaultSingleLazyPluginCollection($this->pluginManager, 'apple',
['id' => 'apple', 'key' => 'value'
]);
} /**
* Tests the get() method.
*/
public function testGet() { $this->
setupPluginCollection($this->
once());
$apple =
$this->pluginInstances
['apple'
];
$this->
assertSame($apple,
$this->defaultPluginCollection->
get('apple'
));
} /**
* @covers ::addInstanceId
* @covers ::getConfiguration
* @covers ::setConfiguration
*/
public function testAddInstanceId() {