N°4224 remove workarounds for DEPRECATED notices generated by mock

We shouldn't have the problem anymore with PHPUnit 8.5 !
This commit is contained in:
Pierre Goiffon
2022-05-05 15:43:59 +02:00
parent b3ef9333af
commit bab14e1489
3 changed files with 0 additions and 41 deletions

View File

@@ -17,7 +17,6 @@ namespace Combodo\iTop\Test\UnitTest\Core\Log;
use Combodo\iTop\Test\UnitTest\ItopDataTestCase;
use ExceptionLog;
use MetaModel;
require_once(__DIR__.'/ExceptionLogTest/Exceptions.php');
@@ -33,12 +32,6 @@ class ExceptionLogTest extends ItopDataTestCase
{
require_once(__DIR__.'/ExceptionLogTest/Exceptions.php');
parent::setUp();
// We are using PHPUnit\Framework\MockObject\Generator::generateMock that is throwing notice !
// Changing config so that those won't be caught by \DeprecatedCallsLog::DeprecatedNoticesErrorHandler
// disabling devenv is easier than changing log config O:)
$oConfig = MetaModel::GetConfig();
$oConfig->Set('developer_mode.enabled', false);
}
/**