From 0592d44f73eb2a8b81d5360be2194d92ad139aac Mon Sep 17 00:00:00 2001 From: Chris Burgess Date: Wed, 24 Aug 2016 11:08:16 +1200 Subject: [PATCH] Update test to account for CRM-13640. --- tests/phpunit/CRM/Core/ErrorTest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/phpunit/CRM/Core/ErrorTest.php b/tests/phpunit/CRM/Core/ErrorTest.php index 1db541c657..780d7d9281 100644 --- a/tests/phpunit/CRM/Core/ErrorTest.php +++ b/tests/phpunit/CRM/Core/ErrorTest.php @@ -93,7 +93,6 @@ class CRM_Core_ErrorTest extends CiviUnitTestCase { } } - /** * Check that a debugger is created and there is no error when passing in a prefix. * @@ -105,7 +104,7 @@ class CRM_Core_ErrorTest extends CiviUnitTestCase { $log->log('Little lamb'); $config = CRM_Core_Config::singleton(); $fileContents = file_get_contents($log->_filename); - $this->assertEquals($config->configAndLogDir . 'CiviCRM.' . 'my-test.' . md5($config->dsn) . '.log', $log->_filename); + $this->assertEquals($config->configAndLogDir . 'CiviCRM.' . 'my-test.' . CRM_Core_Error::generateLogFileHash($config) . '.log', $log->_filename); // The 5 here is a bit arbitrary - on my local the date part is 15 chars (Mar 29 05:29:16) - but we are just checking that // there are chars for the date at the start. $this->assertTrue(strpos($fileContents, '[info] Mary had a little lamb') > 10); -- 2.25.1