CRM-16243 - Redundant installation should not throw error
authorTim Otten <totten@civicrm.org>
Sat, 21 Oct 2017 00:17:43 +0000 (17:17 -0700)
committerTim Otten <totten@civicrm.org>
Sat, 21 Oct 2017 00:17:43 +0000 (17:17 -0700)
commitca29efdce34c0fb0982bb8e81f6e645b083a78c6
tree65140caf75cbcfcc5602b76be48fc946b29c503b
parent401e98f7f16f393f8171ef82681b560acf21a09c
CRM-16243 - Redundant installation should not throw error

Suppose we have two modules, `foo.core` and `foo.addon` (where `foo.addon`
depends on `foo.core`).

Now you suppose you try to install `foo.addon` twice, e.g.

```
cv en foo.addon
cv en foo.addon
```

The first installation succeeds (and enables both modules as expected).
However, the second installation throws an error: "Dependency foo.core not
found, required by foo.addon"

This adds a test and resolves the error.
CRM/Extension/Manager.php
tests/phpunit/CRM/Extension/ManagerTest.php