From fa68c93c2d2934cae4399b08e7bcb54d1b320236 Mon Sep 17 00:00:00 2001 From: mark_story Date: Thu, 6 Apr 2017 10:08:17 -0400 Subject: [PATCH] Fix failing test. This test merges config funny. --- lib/Cake/Test/Case/Network/Http/HttpSocketTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Cake/Test/Case/Network/Http/HttpSocketTest.php b/lib/Cake/Test/Case/Network/Http/HttpSocketTest.php index 404f977f1..89bbcdb21 100644 --- a/lib/Cake/Test/Case/Network/Http/HttpSocketTest.php +++ b/lib/Cake/Test/Case/Network/Http/HttpSocketTest.php @@ -215,11 +215,13 @@ class HttpSocketTest extends CakeTestCase { $this->Socket->expects($this->never())->method('connect'); $this->Socket->__construct(array('host' => 'foo-bar')); $baseConfig['host'] = 'foo-bar'; + $baseConfig['cryptoType'] = 'tls'; $this->assertEquals($this->Socket->config, $baseConfig); $this->Socket->reset(); $baseConfig = $this->Socket->config; $this->Socket->__construct('http://www.cakephp.org:23/'); + $baseConfig['cryptoType'] = 'tls'; $baseConfig['host'] = $baseConfig['request']['uri']['host'] = 'www.cakephp.org'; $baseConfig['port'] = $baseConfig['request']['uri']['port'] = 23; $baseConfig['request']['uri']['scheme'] = 'http';