From 7f4fd2c52f96780fe5e16934bfd94f481489c75a Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 16 Jul 2017 17:05:52 +0200 Subject: [PATCH] Fix tests. --- tests/Feature/Controllers/RuleControllerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Feature/Controllers/RuleControllerTest.php b/tests/Feature/Controllers/RuleControllerTest.php index 8f5bfbdaff..b619f324b4 100644 --- a/tests/Feature/Controllers/RuleControllerTest.php +++ b/tests/Feature/Controllers/RuleControllerTest.php @@ -295,7 +295,7 @@ class RuleControllerTest extends TestCase $matcher->shouldReceive('setLimit')->withArgs([10])->andReturnSelf()->once(); $matcher->shouldReceive('setRange')->withArgs([200])->andReturnSelf()->once(); $matcher->shouldReceive('setTriggers')->andReturnSelf()->once(); - $matcher->shouldReceive('findMatchingTransactions')->andReturn(new Collection); + $matcher->shouldReceive('findTransactionsByTriggers')->andReturn(new Collection); $this->be($this->user()); $uri = route('rules.test-triggers') . '?' . http_build_query($data); @@ -341,7 +341,7 @@ class RuleControllerTest extends TestCase $matcher->shouldReceive('setLimit')->withArgs([10])->andReturnSelf()->once(); $matcher->shouldReceive('setRange')->withArgs([200])->andReturnSelf()->once(); $matcher->shouldReceive('setTriggers')->andReturnSelf()->once(); - $matcher->shouldReceive('findMatchingTransactions')->andReturn($set); + $matcher->shouldReceive('findTransactionsByTriggers')->andReturn($set); $this->be($this->user()); $uri = route('rules.test-triggers') . '?' . http_build_query($data);