mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix broken tests
This commit is contained in:
parent
4dfae7ad7a
commit
1ce2389069
2 changed files with 2 additions and 2 deletions
|
@ -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']);
|
||||
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue