diff options
author | diosmosis <benaka@piwik.pro> | 2015-02-08 06:58:47 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-02-08 06:58:47 +0300 |
commit | 04629db32bd018c120bb3f579678e520deddc6db (patch) | |
tree | 5ea4b4d0973ea20eecf02a4ab3a9a4fb7ca5ab67 /plugins | |
parent | fa86026bf18dc38b06b7ef203da140e236e743e5 (diff) |
Attempting to fix tests setup for mysql strict tables mode.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/CoreAdminHome/tests/Fixture/DuplicateActions.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/CoreAdminHome/tests/Fixture/DuplicateActions.php b/plugins/CoreAdminHome/tests/Fixture/DuplicateActions.php index 7fbb1225ee..692160e725 100644 --- a/plugins/CoreAdminHome/tests/Fixture/DuplicateActions.php +++ b/plugins/CoreAdminHome/tests/Fixture/DuplicateActions.php @@ -16,7 +16,7 @@ use Piwik\Tests\Framework\Fixture; */ class DuplicateActions extends Fixture { - const DUMMY_IDVISITOR = '008c5926ca861023c1d2a36653fd88e2'; + const DUMMY_IDVISITOR = '1234567890123456'; private static $dataToInsert = array( 'log_action' => array( @@ -157,10 +157,6 @@ class DuplicateActions extends Fixture $row['hash'] = crc32($row['name']); } - if (isset($row['idvisitor'])) { - $row['idvisitor'] = pack("H*", $row['idvisitor']); - } - $placeholders = array_map(function () { return "?"; }, $row); $sql = "INSERT INTO $table (" . implode(',', array_keys($row)) . ") VALUES (" . implode(',', $placeholders) . ")"; Db::query($sql, array_values($row)); |