|
|
@@ -355,7 +355,7 @@ class BelongsToTest extends TestCase
|
|
|
->with(
|
|
|
$this->isInstanceOf('\Cake\Event\Event'),
|
|
|
$this->isInstanceOf('\Cake\ORM\Query'),
|
|
|
- [],
|
|
|
+ $this->isInstanceOf('\ArrayObject'),
|
|
|
false
|
|
|
);
|
|
|
$association->attachTo($query);
|
|
|
@@ -378,7 +378,7 @@ class BelongsToTest extends TestCase
|
|
|
$listener = $this->getMock('stdClass', ['__invoke']);
|
|
|
$this->company->eventManager()->attach($listener, 'Model.beforeFind');
|
|
|
$association = new BelongsTo('Companies', $config);
|
|
|
- $options = ['something' => 'more'];
|
|
|
+ $options = new \ArrayObject(['something' => 'more']);
|
|
|
$listener->expects($this->once())->method('__invoke')
|
|
|
->with(
|
|
|
$this->isInstanceOf('\Cake\Event\Event'),
|