Skip to content

Commit

Permalink
Issue civicrm#316: Update long string cache key test results
Browse files Browse the repository at this point in the history
  • Loading branch information
xurizaemon committed Aug 10, 2018
1 parent 76e697a commit 95b6567
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/phpunit/CRM/Core/BAO/CacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ public function getCleanKeyExamples() {
$es[] = ['hello/world+-#@{}', 'hello-2fworld-2b-2d-23-40-7b-7d']; // escaped chars
$es[] = ["LF-\nTAB-\tCR-\remojiskull💀", 'LF-2d-aTAB-2d-9CR-2d-demojiskull-f0-9f-92-80']; // short with emoji
$es[] = ["LF-\nTAB-\tCR-\remojibomb💣emojiskull💀", '-5d9324e052f6e10240dce5029c5e8525']; // long with emoji
$es[] = ['123456789 123456789 123456789 123456789 123456789 123', '123456789-20123456789-20123456789-20123456789-20123456789-20123']; // spaces are escaped
$es[] = ['123456789-123456789-123456789-123456789-123456789-123456789-123', '123456789-123456789-123456789-123456789-123456789-123456789-123']; // long but allowed
$es[] = ['123456789-123456789-123456789-123456789-123456789-123456789-1234', '-afe584fe1d38b9a007df7d7ba30558e2']; // too long, md5 fallback
$es[] = ['123456789 123456789 123456789 123456789 123456789 12', '123456789-20123456789-20123456789-20123456789-20123456789-20123']; // spaces are escaped
$es[] = ['123456789-123456789-123456789-123456789-123456789-123456789-12', '123456789-123456789-123456789-123456789-123456789-12']; // long but allowed
$es[] = ['123456789-123456789-123456789-123456789-123456789-123456789-123', '-8f6cbe1d258d2ec9a0cffd5ff29ba5d0']; // too long, md5 fallback
$es[] = ['123456789-/23456789-+23456789--23456789-123456789-123456789', '-afe584fe1d38b9a007df7d7ba30558e2']; // too long, md5 fallback
return $es;
}
Expand Down

0 comments on commit 95b6567

Please sign in to comment.