$url->
setOptions([]);
$this->
assertEquals([],
$url->
getOptions());
} /**
* Tests the mergeOptions() method.
*
* @covers ::mergeOptions
*/
public function testMergeOptions() { $url = Url::
fromRoute('test_route',
[],
['foo' => 'bar', 'bar' =>
['key' => 'value'
]]);
$url->
mergeOptions(['bar' =>
['key' => 'value1', 'key2' => 'value2'
]]);
$this->
assertEquals(['foo' => 'bar', 'bar' =>
['key' => 'value1', 'key2' => 'value2'
]],
$url->
getOptions());
} /**
* Tests the access() method for routed URLs.
*
* @param bool $access
* The access value.
*
* @covers ::access
* @covers ::accessManager
* @dataProvider accessProvider
*/