Fix HttpSocket test to actually reset protocols for correct test. Modify HttpSocket so that Https with non-passed in protocol doesn't set it to tcp and fail test.

This commit is contained in:
Melvin Ross 2014-06-12 09:37:03 -05:00
parent 460cc29fff
commit ad4dbdcee5
2 changed files with 5 additions and 2 deletions

View file

@ -493,7 +493,7 @@ class HttpSocketTest extends CakeTestCase {
)
)
),
'reset9' => array(
'reset10' => array(
'config.protocol' => 'ssl'
),
array(
@ -524,6 +524,9 @@ class HttpSocketTest extends CakeTestCase {
)
)
),
'reset11' => array(
'config.protocol' => 'ssl'
),
array(
'request' => array(
'method' => 'POST',