1
0
mirror of https://github.com/e107inc/e107.git synced 2025-10-14 22:44:50 +02:00

Test for corrupted linkwords pref.

This commit is contained in:
Cameron
2019-06-01 15:58:33 -07:00
parent 56c9cd6a00
commit 6844dbfcab
2 changed files with 33 additions and 2 deletions

View File

@@ -52,11 +52,18 @@ $data = array (
{
$src = codecept_data_dir()."unserializeTest.log";
$string_0 = file_get_contents($src);
$actual = $this->arrObj->unserialize($string_0);
$stringFile_0 = file_get_contents($src);
$actual = $this->arrObj->unserialize($stringFile_0);
$this->assertArrayHasKey('email_password', $actual);
// Check for legacy (corrupted) link-words preferences.
$src = codecept_data_dir()."unserializeTest2.log";
$stringFile_1 = file_get_contents($src);
$actual = $this->arrObj->unserialize($stringFile_1);
$this->assertArrayHasKey('lw_context_visibility', $actual);
// Buggy value test -------.
$string_1 = "\$data = array(
\'buggy_array\' => \'some value\',