Permalink
Browse files

Fix failing tests.

  • Loading branch information...
1 parent 240c871 commit d95ef5d5e861de0bf34009a7ed9888732b23a40c @markstory markstory committed Nov 12, 2012
Showing with 4 additions and 6 deletions.
  1. +3 −5 lib/Cake/Test/Case/Network/CakeSocketTest.php
  2. +1 −1 lib/Cake/Test/Case/Utility/FolderTest.php
@@ -336,16 +336,14 @@ public function testGetContext() {
'host' => 'smtp.gmail.com',
'port' => 465,
'timeout' => 5,
- 'request' => array(
- 'context' => array(
- 'ssl' => array('capture_peer' => true)
- )
+ 'context' => array(
+ 'ssl' => array('capture_peer' => true)
)
);
$this->Socket = new CakeSocket($config);
$this->Socket->connect();
$result = $this->Socket->context();
- $this->assertEquals($config['request']['context'], $result);
+ $this->assertEquals($config['context'], $result);
}
}
@@ -640,7 +640,7 @@ public function testFind() {
$this->assertSame(array_diff($expected, $result), array());
$result = $Folder->find('.*', true);
- $expected = array('config.php', 'routes.php');
+ $expected = array('cacert.pem', 'config.php', 'routes.php');
$this->assertSame($expected, $result);
$result = $Folder->find('.*\.php');

0 comments on commit d95ef5d

Please sign in to comment.