Skip to content
Snippets Groups Projects
Commit 97a5e58d authored by Demian Katz's avatar Demian Katz
Browse files

Fix broken test.

parent 966bc4fb
No related merge requests found
...@@ -256,8 +256,11 @@ class RecordTest extends \PHPUnit\Framework\TestCase ...@@ -256,8 +256,11 @@ class RecordTest extends \PHPUnit\Framework\TestCase
public function testGetLink() public function testGetLink()
{ {
$context = $this->getMockContext(); $context = $this->getMockContext();
$callback = function ($arr) {
return $arr['lookfor'] === 'foo';
};
$context->expects($this->once())->method('apply') $context->expects($this->once())->method('apply')
->with($this->equalTo(['lookfor' => 'foo'])) ->with($this->callback($callback))
->will($this->returnValue(['bar' => 'baz'])); ->will($this->returnValue(['bar' => 'baz']));
$context->expects($this->once())->method('restore') $context->expects($this->once())->method('restore')
->with($this->equalTo(['bar' => 'baz'])); ->with($this->equalTo(['bar' => 'baz']));
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment