Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] Error decoding JSON data: Syntax error #20663

Merged
merged 2 commits into from
Jun 5, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[test] ensure that empty params do not cause user loading issues
  • Loading branch information
phproberto committed Jun 4, 2018
commit 5f5f7011c96ead29fc1f4ade788d02c6bed0ee30
1 change: 1 addition & 0 deletions tests/unit/stubs/database/jos_users.csv
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
'44','Manager','manager','manager@example.com','b69eafa62e549e5fa875e127fadc3c83:VapLaQZx00iYDRwgMjgsfyIHgoe01DK8','0','1','2010-02-13 00:34:42','2010-02-13 00:34:42','0','{}','0000-00-00 00:00:00','0'
'99','Test','test','test@example.com','b69eafa62e549e5fa875e127fadc3c83:VapLaQZx00iYDRwgMjgsfyIHgoe01DK8','0','1','2010-02-13 00:34:42','2010-02-13 00:34:42','0','{}','0000-00-00 00:00:00','0'
'100','Activate','activate','activate@example.com','b69eafa62e549e5fa875e127fadc3c83:VapLaQZx00iYDRwgMjgsfyIHgoe01DK8','1','1','2010-02-13 00:34:42','0000-00-00 00:00:00','30cc6de70fb18231196a28dd83363d57','{}','0000-00-00 00:00:00','0'
'101','Empty params','empty-params','empty-params@example.com','b69eafa62e549e5fa875e127fadc3c83:VapLaQZx00iYDRwgMjgsfyIHgoe01DK8','1','1','2010-02-13 00:34:42','0000-00-00 00:00:00','30cc6de70fb18231196a28dd83363d57','','0000-00-00 00:00:00','0'
5 changes: 5 additions & 0 deletions tests/unit/suites/libraries/joomla/user/JUserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,11 @@ public function casesLoad()
true,
false
),
'empty-params' => array(
101,
true,
false
),
'existing-but-guest' => array(
0,
false,
Expand Down