File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ public function run(ModuleContainer $container = null)
1111 {
1212 $ container ->getModule ('REST ' )->haveHttpHeader ('Content-Type ' , 'application/json ' );
1313 $ resp = parent ::run ($ container );
14+ $ container ->getModule ('REST ' )->seeResponseIsJson ();
1415 return json_decode ($ resp , true );
1516 }
1617
@@ -21,7 +22,7 @@ public static function getTemplate(Template $template)
2122 // should only be applied to send* methods
2223 if (strpos ($ action , 'send ' ) !== 0 ) return ;
2324
24- $ conditionalDoc = "* JSON response will be automatically decoded \n " . $ template ->getVar ('doc ' );
25+ $ conditionalDoc = "* JSON response will be automatically decoded \n " . $ template ->getVar ('doc ' );
2526
2627 return $ template
2728 ->place ('doc ' , $ conditionalDoc )
You can’t perform that action at this time.
0 commit comments