diff options
author | Marco Nassabain <marco.nassabain@hotmail.com> | 2021-02-28 21:51:11 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-04-08 22:31:21 +0200 |
commit | 85dbed9ffaa7245d2672346e49b9dca9a57864b8 (patch) | |
tree | 1a08c4ce55397a0e66302e464d0e56926305d293 /tests | |
parent | 604f64c30cb20ab0c096fe4204a50f7c3e58b759 (diff) |
🧹 Cleanup test files: added new lines
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Unit/Db/ItemMapperTest.php | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/tests/Unit/Db/ItemMapperTest.php b/tests/Unit/Db/ItemMapperTest.php index b4a5ab118..0a7a852e1 100644 --- a/tests/Unit/Db/ItemMapperTest.php +++ b/tests/Unit/Db/ItemMapperTest.php @@ -163,7 +163,7 @@ class ItemMapperTest extends MapperTestUtility ->will($this->returnSelf()); $this->builder->expects($this->exactly(2)) - ->method('setParameter') + ->method('setParameter') ->withConsecutive(['user_id', 'jack'], ['shared_with', 'jack']) ->will($this->returnSelf()); @@ -388,12 +388,21 @@ class ItemMapperTest extends MapperTestUtility $this->builder->expects($this->exactly(3)) ->method('andWhere') - ->withConsecutive(['(feeds.user_id = :user_id AND items.shared_by = \'\') OR items.shared_with = :shared_with'], ['feeds.id = :feed_id'], ['items.guid_hash = :guid_hash']) + ->withConsecutive( + ['(feeds.user_id = :user_id AND items.shared_by = \'\') OR items.shared_with = :shared_with'], + ['feeds.id = :feed_id'], + ['items.guid_hash = :guid_hash'] + ) ->will($this->returnSelf()); $this->builder->expects($this->exactly(4)) ->method('setParameter') - ->withConsecutive(['user_id', 'jack'], ['shared_with', 'jack'], ['feed_id', 4], ['guid_hash', 'hash']) + ->withConsecutive( + ['user_id', 'jack'], + ['shared_with', 'jack'], + ['feed_id', 4], + ['guid_hash', 'hash'] + ) ->will($this->returnSelf()); $this->builder->expects($this->once()) @@ -450,7 +459,7 @@ class ItemMapperTest extends MapperTestUtility $this->builder->expects($this->exactly(2)) ->method('setParameter') ->withConsecutive( - ['userId', 'jack'], + ['userId', 'jack'], ['sharedWith', 'jack'] ) ->will($this->returnSelf()); @@ -1302,7 +1311,12 @@ class ItemMapperTest extends MapperTestUtility $this->builder->expects($this->exactly(4)) ->method('setParameter') - ->withConsecutive(['userId', 'jack'], ['sharedWith', 'jack'], ['term0', '%key%'], ['term1', '%word%']) + ->withConsecutive( + ['userId', 'jack'], + ['sharedWith', 'jack'], + ['term0', '%key%'], + ['term1', '%word%'] + ) ->will($this->returnSelf()); |