diff options
author | anoy <anoymouserver+github@mailbox.org> | 2021-01-09 18:19:24 +0100 |
---|---|---|
committer | anoy <anoymouserver@users.noreply.github.com> | 2021-01-11 09:32:23 +0100 |
commit | 8de3ad77fc9e445353cd0861931b2215d9f24859 (patch) | |
tree | d0ef44d6255e7890e334eab432ea426e1274f676 /tests | |
parent | 7e549fd8acd95d5b63bedb356d4147498f24a93d (diff) |
remove deprecated colon prefix for parameters
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Unit/Db/FeedMapperTest.php | 12 | ||||
-rw-r--r-- | tests/Unit/Db/FolderMapperTest.php | 8 | ||||
-rw-r--r-- | tests/Unit/Db/NewsMapperTest.php | 6 |
3 files changed, 13 insertions, 13 deletions
diff --git a/tests/Unit/Db/FeedMapperTest.php b/tests/Unit/Db/FeedMapperTest.php index 59e1440fb..a6a4be866 100644 --- a/tests/Unit/Db/FeedMapperTest.php +++ b/tests/Unit/Db/FeedMapperTest.php @@ -109,7 +109,7 @@ class FeedMapperTest extends MapperTestUtility $this->builder->expects($this->exactly(2)) ->method('setParameter') - ->withConsecutive([':unread', true], [':user_id', 'jack']) + ->withConsecutive(['unread', true], ['user_id', 'jack']) ->will($this->returnSelf()); $this->builder->expects($this->once()) @@ -159,7 +159,7 @@ class FeedMapperTest extends MapperTestUtility $this->builder->expects($this->exactly(2)) ->method('setParameter') - ->withConsecutive([':user_id', 'jack'], [':id', 1]) + ->withConsecutive(['user_id', 'jack'], ['id', 1]) ->will($this->returnSelf()); $this->builder->expects($this->once()) @@ -208,7 +208,7 @@ class FeedMapperTest extends MapperTestUtility $this->builder->expects($this->exactly(2)) ->method('setParameter') - ->withConsecutive([':user_id', 'jack'], [':id', 1]) + ->withConsecutive(['user_id', 'jack'], ['id', 1]) ->will($this->returnSelf()); $this->builder->expects($this->once()) @@ -256,7 +256,7 @@ class FeedMapperTest extends MapperTestUtility $this->builder->expects($this->exactly(2)) ->method('setParameter') - ->withConsecutive([':user_id', 'jack'], [':url', 'https://url.com']) + ->withConsecutive(['user_id', 'jack'], ['url', 'https://url.com']) ->will($this->returnSelf()); $this->builder->expects($this->once()) @@ -306,7 +306,7 @@ class FeedMapperTest extends MapperTestUtility $this->builder->expects($this->exactly(2)) ->method('setParameter') - ->withConsecutive([':user_id', 'jack'], [':id', 1]) + ->withConsecutive(['user_id', 'jack'], ['id', 1]) ->will($this->returnSelf()); $this->builder->expects($this->once()) @@ -390,7 +390,7 @@ class FeedMapperTest extends MapperTestUtility $this->builder->expects($this->exactly(1)) ->method('setParameter') - ->withConsecutive([':folder_id', 1]) + ->withConsecutive(['folder_id', 1]) ->will($this->returnSelf()); $this->builder->expects($this->once()) diff --git a/tests/Unit/Db/FolderMapperTest.php b/tests/Unit/Db/FolderMapperTest.php index ab2fb3995..dd87b22b5 100644 --- a/tests/Unit/Db/FolderMapperTest.php +++ b/tests/Unit/Db/FolderMapperTest.php @@ -74,7 +74,7 @@ class FolderMapperTest extends MapperTestUtility $this->builder->expects($this->once()) ->method('setParameter') - ->with(':user_id', 'jack') + ->with('user_id', 'jack') ->will($this->returnSelf()); $this->builder->expects($this->once()) @@ -124,7 +124,7 @@ class FolderMapperTest extends MapperTestUtility $this->builder->expects($this->exactly(2)) ->method('setParameter') - ->withConsecutive([':user_id', 'jack'], [':id', 1]) + ->withConsecutive(['user_id', 'jack'], ['id', 1]) ->will($this->returnSelf()); $this->builder->expects($this->once()) @@ -173,7 +173,7 @@ class FolderMapperTest extends MapperTestUtility $this->builder->expects($this->exactly(2)) ->method('setParameter') - ->withConsecutive([':user_id', 'jack'], [':id', 1]) + ->withConsecutive(['user_id', 'jack'], ['id', 1]) ->will($this->returnSelf()); $this->builder->expects($this->once()) @@ -222,7 +222,7 @@ class FolderMapperTest extends MapperTestUtility $this->builder->expects($this->exactly(2)) ->method('setParameter') - ->withConsecutive([':user_id', 'jack'], [':id', 1]) + ->withConsecutive(['user_id', 'jack'], ['id', 1]) ->will($this->returnSelf()); $this->builder->expects($this->once()) diff --git a/tests/Unit/Db/NewsMapperTest.php b/tests/Unit/Db/NewsMapperTest.php index b6d4422c2..5d75f740f 100644 --- a/tests/Unit/Db/NewsMapperTest.php +++ b/tests/Unit/Db/NewsMapperTest.php @@ -193,7 +193,7 @@ class NewsMapperTest extends TestCase $qb->expects($this->once()) ->method('setParameter') - ->with(':user_id', 'jack') + ->with('user_id', 'jack') ->will($this->returnSelf()); $qb->expects($this->once()) @@ -226,7 +226,7 @@ class NewsMapperTest extends TestCase $qb->expects($this->once()) ->method('setParameter') - ->with(':deleted_at', 1) + ->with('deleted_at', 1) ->will($this->returnSelf()); $qb->expects($this->once()) @@ -259,7 +259,7 @@ class NewsMapperTest extends TestCase $qb->expects($this->exactly(2)) ->method('setParameter') - ->withConsecutive([':user_id', 'jack'], [':deleted_at', 1]) + ->withConsecutive(['user_id', 'jack'], ['deleted_at', 1]) ->will($this->returnSelf()); $qb->expects($this->once()) |