Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Blocker
-
Resolution: Won't Fix
-
Affects Version/s: 5.0.0-b1
-
Fix Version/s: 5.0.0-b1
-
Component/s: None
-
Labels:None
Description
The tests are failing during build, due to an object being passed instead of a string to the json_decode() function.
[exec] 1) ServiceChangesTest::testGet with data set #0 (stdClass Object (...))
[exec] UnknownException: json_decode() expects parameter 1 to be string, object given
[exec]
[exec] /Volumes/Archive/Documents/Projects/BitBucket/blesta/core/public_html/vendors/monolog/monolog/src/Monolog/ErrorHandler.php:201
[exec] /Volumes/Archive/Documents/Projects/BitBucket/blesta/core/public_html/app/models/service_changes.php:121
[exec] /Volumes/Archive/Documents/Projects/BitBucket/blesta/core/tests/unit/app/models/ServiceChangesTest.php:152
[exec]
[exec] 2) ServiceChangesTest::testGetAll
[exec] UnknownException: json_decode() expects parameter 1 to be string, object given
[exec]
[exec] /Volumes/Archive/Documents/Projects/BitBucket/blesta/core/public_html/app/models/service_changes.php:150
[exec] /Volumes/Archive/Documents/Projects/BitBucket/blesta/core/tests/unit/app/models/ServiceChangesTest.php:194
[exec]
[exec] 3) ServiceChangesTest::testProcess with data set #0 (1, false)
[exec] UnknownException: json_decode() expects parameter 1 to be string, object given
[exec]
[exec] /Volumes/Archive/Documents/Projects/BitBucket/blesta/core/public_html/app/models/service_changes.php:121
[exec] /Volumes/Archive/Documents/Projects/BitBucket/blesta/core/public_html/app/models/service_changes.php:167
[exec] /Volumes/Archive/Documents/Projects/BitBucket/blesta/core/tests/unit/app/models/ServiceChangesTest.php:236
[exec]
[exec] 4) ServiceChangesTest::testProcess with data set #1 (1, true)
[exec] UnknownException: json_decode() expects parameter 1 to be string, object given
[exec]
[exec] /Volumes/Archive/Documents/Projects/BitBucket/blesta/core/public_html/app/models/service_changes.php:121
[exec] /Volumes/Archive/Documents/Projects/BitBucket/blesta/core/public_html/app/models/service_changes.php:167
[exec] /Volumes/Archive/Documents/Projects/BitBucket/blesta/core/tests/unit/app/models/ServiceChangesTest.php:236
Couldn't reproduce this one on a fresh install from the dev branch.