CRM-20926 - Resolve "exception"/"exceptions" discrepency. Improve test.
authorTim Otten <totten@civicrm.org>
Tue, 1 Aug 2017 22:53:20 +0000 (15:53 -0700)
committerTim Otten <totten@civicrm.org>
Fri, 4 Aug 2017 00:13:05 +0000 (17:13 -0700)
commit36d4fa1bb6e96ee98a3db734da20fa87679e78fe
treeb9da48fce389d6060afa00fe0f375847aa452e6b
parent4535c1f5e7f9e3a4584fb0d4a23b2a581f5408ec
CRM-20926 - Resolve "exception"/"exceptions" discrepency. Improve test.

The PHPIDS config format uses the property:

```
exceptions => array('field_1)`
```

But our XML format uses the tag:

```
<exception>field_1</exception>
```

Grammatically, those both make sense. But they were getting confused.

This modifies the XML parser to map the tags `<exception>` to property
`exceptions`, and it updates the unit-test to ensure that the data
(from the route and the default config) are correctly merged.
CRM/Core/IDS.php
CRM/Core/Menu.php
tests/phpunit/CRM/Core/MenuTest.php