Permalink
Browse files

Correct assert param order

  • Loading branch information...
1 parent 7f2e0a2 commit 738b34c2d0e8a38990810eed0af2bb81df660c62 @dereuromark dereuromark committed Jan 9, 2014
@@ -3753,7 +3753,7 @@ protected function _assertBindings(Model $Model, $expected = array()) {
'hasAndBelongsToMany' => array()
), $expected);
foreach ($expected as $binding => $expect) {
- $this->assertEquals(array_keys($Model->$binding), $expect);
+ $this->assertEquals($expect, array_keys($Model->$binding));
}
}
}
@@ -657,13 +657,13 @@ public function testRequest3() {
$this->Socket->connected = true;
$this->Socket->request($request);
$result = $this->Socket->response['cookies'];
- $expect = array(
+ $expected = array(
'foo' => array(
'value' => 'bar'
)
);
- $this->assertEquals($expect, $result);
- $this->assertEquals($this->Socket->config['request']['cookies']['www.cakephp.org'], $expect);
+ $this->assertEquals($expected, $result);
+ $this->assertEquals($expected, $this->Socket->config['request']['cookies']['www.cakephp.org']);
$this->assertFalse($this->Socket->connected);
}

0 comments on commit 738b34c

Please sign in to comment.