projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3b2dcc
)
(NFC) Ensure that when loading in the test data it is done with UTF8 encoding
author
Seamus Lee
<seamuslee001@gmail.com>
Mon, 7 Jan 2019 21:17:13 +0000
(08:17 +1100)
committer
Seamus Lee
<seamuslee001@gmail.com>
Thu, 10 Jan 2019 08:19:47 +0000
(19:19 +1100)
Civi/Test/Data.php
patch
|
blob
|
blame
|
history
diff --git
a/Civi/Test/Data.php
b/Civi/Test/Data.php
index d1e62e5903fb99656381faa01370295c82fd74f0..a0c26df636d756df250232c784cb36c412997fe3 100644
(file)
--- a/
Civi/Test/Data.php
+++ b/
Civi/Test/Data.php
@@
-15,6
+15,9
@@
class Data {
\Civi\Test::schema()->truncateAll();
\Civi\Test::schema()->setStrict(FALSE);
+
+ // Ensure that when we populate the database it is done in utf8 mode
+ \Civi\Test::execute('SET NAMES utf8');
$sqlDir = dirname(dirname(__DIR__)) . "/sql";
$query2 = file_get_contents("$sqlDir/civicrm_data.mysql");