Fix broken tests

This commit is contained in:
Marc Würth 2017-06-11 01:02:49 +02:00
parent 4dfae7ad7a
commit 1ce2389069
2 changed files with 2 additions and 2 deletions

View file

@ -2341,7 +2341,7 @@ class CakeEmailTest extends CakeTestCase {
$this->CakeEmail->config(array('empty'));
$result = $this->CakeEmail->send($message);
$expected = "<a\r\n" . 'href="https://cakephp.org">' . str_repeat('x', CakeEmail::LINE_LENGTH_MUST - 26) . "\r\n" .
str_repeat('x', 26) . "\r\n</a>\r\n\r\n";
str_repeat('x', 27) . "\r\n</a>\r\n\r\n";
$this->assertEquals($expected, $result['message']);
$this->assertLineLengths($result['message']);

View file

@ -994,7 +994,7 @@ class HttpSocketTest extends CakeTestCase {
$this->Socket->config['request']['uri']['host'] = 'bakery.cakephp.org';
$url = $this->Socket->url();
$this->assertEquals('https://bakery.cakephp.org/', $url);
$this->assertEquals('http://bakery.cakephp.org/', $url);
$this->Socket->configUri('http://www.cakephp.org');
$url = $this->Socket->url('/search?q=bar');