summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSean Molenaar <SMillerDev@users.noreply.github.com>2021-11-15 19:57:50 +0100
committerBenjamin Brahmer <info@b-brahmer.de>2021-11-18 14:10:57 +0100
commita52eee5671c81df6b1b1afffc12bd183354affe8 (patch)
tree368150bdf599ed81c4711b3cc9ab7f73e8b575b2 /tests
parent7d05abc7691c52db803acc1837d2b4f2c7941017 (diff)
chore: use executeStatement instead of executeUpdate
Signed-off-by: Sean Molenaar sean@seanmolenaar.eu Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/Unit/Db/FeedMapperTest.php4
-rw-r--r--tests/Unit/Db/FolderMapperTest.php4
-rw-r--r--tests/Unit/Db/ItemMapperTest.php8
3 files changed, 8 insertions, 8 deletions
diff --git a/tests/Unit/Db/FeedMapperTest.php b/tests/Unit/Db/FeedMapperTest.php
index c42ffee67..499989062 100644
--- a/tests/Unit/Db/FeedMapperTest.php
+++ b/tests/Unit/Db/FeedMapperTest.php
@@ -551,7 +551,7 @@ class FeedMapperTest extends MapperTestUtility
->will($this->returnValue([]));
$this->db->expects($this->exactly(1))
- ->method('executeUpdate')
+ ->method('executeStatement')
->with('QUERY');
$this->class->read('admin', 1);
@@ -653,7 +653,7 @@ class FeedMapperTest extends MapperTestUtility
->will($this->returnValue([]));
$this->db->expects($this->exactly(1))
- ->method('executeUpdate')
+ ->method('executeStatement')
->with('QUERY');
$this->class->read('admin', 1, 4);
diff --git a/tests/Unit/Db/FolderMapperTest.php b/tests/Unit/Db/FolderMapperTest.php
index 3e15e8004..a7f9f0c9d 100644
--- a/tests/Unit/Db/FolderMapperTest.php
+++ b/tests/Unit/Db/FolderMapperTest.php
@@ -379,7 +379,7 @@ class FolderMapperTest extends MapperTestUtility
->will($this->returnValue([]));
$this->db->expects($this->exactly(1))
- ->method('executeUpdate')
+ ->method('executeStatement')
->with('QUERY');
$this->class->read('admin', 1);
@@ -482,7 +482,7 @@ class FolderMapperTest extends MapperTestUtility
->will($this->returnValue([]));
$this->db->expects($this->exactly(1))
- ->method('executeUpdate')
+ ->method('executeStatement')
->with('QUERY');
$this->class->read('admin', 1, 4);
diff --git a/tests/Unit/Db/ItemMapperTest.php b/tests/Unit/Db/ItemMapperTest.php
index 2d831e784..7fc45018e 100644
--- a/tests/Unit/Db/ItemMapperTest.php
+++ b/tests/Unit/Db/ItemMapperTest.php
@@ -565,7 +565,7 @@ class ItemMapperTest extends MapperTestUtility
->will($this->returnValue([]));
$this->db->expects($this->exactly(1))
- ->method('executeUpdate')
+ ->method('executeStatement')
->with('QUERY');
$this->class->readAll('admin', 4);
@@ -791,7 +791,7 @@ class ItemMapperTest extends MapperTestUtility
->willReturn('DELETE_SQL');
$this->db->expects($this->once())
- ->method('executeUpdate')
+ ->method('executeStatement')
->with('DELETE_SQL', [[4, 6, 8, 3, 5, 7]], [101])
->will($this->returnValue(10));
@@ -949,7 +949,7 @@ class ItemMapperTest extends MapperTestUtility
->willReturn('DELETE_SQL');
$this->db->expects($this->once())
- ->method('executeUpdate')
+ ->method('executeStatement')
->with('DELETE_SQL', [[4, 6, 8, 3, 5, 7]], [101])
->will($this->returnValue(10));
@@ -1106,7 +1106,7 @@ class ItemMapperTest extends MapperTestUtility
->willReturn('DELETE_SQL');
$this->db->expects($this->once())
- ->method('executeUpdate')
+ ->method('executeStatement')
->with('DELETE_SQL', [[4, 6, 8]], [101])
->will($this->returnValue(10));