diff options
Diffstat (limited to 'tests/bl')
-rw-r--r-- | tests/bl/FeedBlTest.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/bl/FeedBlTest.php b/tests/bl/FeedBlTest.php index 444018349..33bf5704c 100644 --- a/tests/bl/FeedBlTest.php +++ b/tests/bl/FeedBlTest.php @@ -38,13 +38,17 @@ class FeedBlTest extends \OCA\AppFramework\Utility\TestUtility { protected $feedBl; protected $user; protected $response; + protected $utils; protected function setUp(){ $this->api = $this->getAPIMock(); $this->feedMapper = $this->getMockBuilder('\OCA\News\Db\FeedMapper') ->disableOriginalConstructor() ->getMock(); - $this->feedBl = new FeedBl($this->feedMapper); + $this->utils = $this->getMockBuilder('\OCA\News\Utility\FeedFetcher') + ->disableOriginalConstructor() + ->getMock(); + $this->feedBl = new FeedBl($this->feedMapper, $this->utils); $this->user = 'jack'; $response = 'hi'; } |