/**
* @covers ::addInstanceId
* @covers ::getConfiguration
* @covers ::setConfiguration
*/
public function testAddInstanceId() { $this->
setupPluginCollection($this->
any());
$this->
assertEquals(['id' => 'apple', 'key' => 'value'
],
$this->defaultPluginCollection->
get('apple'
)->
getConfiguration());
$this->
assertEquals(['id' => 'apple', 'key' => 'value'
],
$this->defaultPluginCollection->
getConfiguration());
$this->defaultPluginCollection->
addInstanceId('banana',
['id' => 'banana', 'key' => 'other_value'
]);
$this->
assertEquals(['id' => 'apple', 'key' => 'value'
],
$this->defaultPluginCollection->
get('apple'
)->
getConfiguration());
$this->
assertEquals(['id' => 'banana', 'key' => 'other_value'
],
$this->defaultPluginCollection->
getConfiguration());
$this->
assertEquals(['id' => 'banana', 'key' => 'other_value'
],
$this->defaultPluginCollection->
get('banana'
)->
getConfiguration());
} /**
* @covers ::getInstanceIds
*/
public function testGetInstanceIds() { $this->
setupPluginCollection($this->
any());