mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Correct assert param order
This commit is contained in:
parent
7f2e0a29a4
commit
738b34c2d0
2 changed files with 4 additions and 4 deletions
|
@ -3753,7 +3753,7 @@ class ContainableBehaviorTest extends CakeTestCase {
|
|||
'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 @@ class HttpSocketTest extends CakeTestCase {
|
|||
$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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue