E2E_Core_HookTest - Fix test failure due to leak
authorTim Otten <totten@civicrm.org>
Thu, 7 May 2020 04:51:10 +0000 (21:51 -0700)
committerTim Otten <totten@civicrm.org>
Thu, 7 May 2020 04:51:10 +0000 (21:51 -0700)
commitd21ceb5407bf97e545880d7d76b84927f7015cb3
tree59034ad0998e986093d08cdcfee4d27245332258
parente26695babcd9ff2b8eeac75e7e87f1045caa4c5f
E2E_Core_HookTest - Fix test failure due to leak

Before
------

The `HookTest` class fails when running on WordPress.

The event-listener from `testSymfonyListener_names` leaks and remains active during `testSymfonyListener_int`.

After
-----

The `HookTest` class passes when running on WordPress.

The event-listeners from `testSymfonyListener_names` and `testSymfonyListener_int` are cleaned up.
tests/phpunit/E2E/Core/HookTest.php