Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ndm2 authored and markstory committed Jan 17, 2015
1 parent 395de81 commit 8917e56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/TestCase/ORM/Association/BelongsToTest.php
Expand Up @@ -355,7 +355,7 @@ public function testAttachToBeforeFind()
->with(
$this->isInstanceOf('\Cake\Event\Event'),
$this->isInstanceOf('\Cake\ORM\Query'),
[],
$this->isInstanceOf('\ArrayObject'),
false
);
$association->attachTo($query);
Expand All @@ -378,7 +378,7 @@ public function testAttachToBeforeFindExtraOptions()
$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'),
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/ORM/Association/HasOneTest.php
Expand Up @@ -284,7 +284,7 @@ public function testAttachToBeforeFind()
->with(
$this->isInstanceOf('\Cake\Event\Event'),
$this->isInstanceOf('\Cake\ORM\Query'),
[],
$this->isInstanceOf('\ArrayObject'),
false
);
$association->attachTo($query);
Expand All @@ -307,7 +307,7 @@ public function testAttachToBeforeFindExtraOptions()
$listener = $this->getMock('stdClass', ['__invoke']);
$this->profile->eventManager()->attach($listener, 'Model.beforeFind');
$association = new HasOne('Profiles', $config);
$opts = ['something' => 'more'];
$opts = new \ArrayObject(['something' => 'more']);
$listener->expects($this->once())->method('__invoke')
->with(
$this->isInstanceOf('\Cake\Event\Event'),
Expand Down

0 comments on commit 8917e56

Please sign in to comment.