@@ -15,7 +15,7 @@ public function shouldShowConfigData()
15
15
{ "status": "DONE", "key": "GitHub utilities" }, { "status": "DONE", "key": "GitHub applications" },
16
16
{ "status": "CONFIGURING", "key": "GitHub services" }, { "status": "PENDING", "key":
17
17
"Reloading appliance services" } ] } ' ;
18
- $ expectedArray = json_encode ($ expectedJson );
18
+ $ expectedArray = json_decode ($ expectedJson );
19
19
20
20
$ api = $ this ->getApiMock ();
21
21
$ api ->expects ($ this ->once ())
@@ -53,7 +53,7 @@ public function shouldShowSettingsData()
53
53
"file", "bucket": null, "host_name": null, "key_id": null, "access_key": null }, "pages": { "enabled": true },
54
54
"collectd": { "enabled": false, "server": "", "port": "", "encryption": "", "username": "foo", "password":
55
55
"bar" } }, "run_list": [ "role[configure]" ] } ' ;
56
- $ expectedArray = json_encode ($ expectedJson );
56
+ $ expectedArray = json_decode ($ expectedJson );
57
57
58
58
$ api = $ this ->getApiMock ();
59
59
$ api ->expects ($ this ->once ())
@@ -72,7 +72,7 @@ public function shouldShowMaintenanceStatus()
72
72
$ expectedJson = '{ "status": "scheduled", "scheduled_time": "Tuesday, January 22 at 15 => 34 -0800",
73
73
"connection_services": [ { "name": "git operations", "number": 0 }, { "name": "mysql queries", "number": 233 },
74
74
{ "name": "resque jobs", "number": 54 } ] } ' ;
75
- $ expectedArray = json_encode ($ expectedJson );
75
+ $ expectedArray = json_decode ($ expectedJson );
76
76
77
77
$ api = $ this ->getApiMock ();
78
78
$ api ->expects ($ this ->once ())
@@ -92,7 +92,7 @@ public function shouldShowAuthorizedKeys()
92
92
"ssh-rsa 01:14:0f:f2:0f:e2:fe:e8:f4:72:62:af:75:f7:1a:88:3e:04:92:64" },
93
93
{ "key": "ssh-rsa AAAAB3NzaC1yc2EAAAAB...", "pretty-print":
94
94
"ssh-rsa 01:14:0f:f2:0f:e2:fe:e8:f4:72:62:af:75:f7:1a:88:3e:04:92:64" } ] ' ;
95
- $ expectedArray = json_encode ($ expectedJson );
95
+ $ expectedArray = json_decode ($ expectedJson );
96
96
97
97
$ api = $ this ->getApiMock ();
98
98
$ api ->expects ($ this ->once ())
0 commit comments