Fix Constant DOKU_MEDIADETAIL already defined
commit012c7cdc1eaa60ee12aedc0a77226245a4e8e121
authorDamien Regad <dregad@mantisbt.org>
Sat, 6 Feb 2021 00:41:36 +0000 (6 01:41 +0100)
committerDamien Regad <dregad@mantisbt.org>
Sat, 6 Feb 2021 00:41:36 +0000 (6 01:41 +0100)
tree35f3b02be3e5f270e0652a9237787676d1ca8935
parent6d3d9dba292cf0b589c8531d5b2bb21fb81cbce5
Fix Constant DOKU_MEDIADETAIL already defined

This error only occurs when PHPUnit runs both the `testScripts` and the
`test_Validity` suites [1], because all tests are running in the same
PHP process.

Adding an `if(!defined` check to avoid the problem.

[1]: ./phpunit.phar --filter 'testScripts|test_Validity'
lib/exe/detail.php