summaryrefslogtreecommitdiffstats
path: root/tests/lib/AppFramework/Db/MapperTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/AppFramework/Db/MapperTest.php')
-rw-r--r--tests/lib/AppFramework/Db/MapperTest.php24
1 files changed, 18 insertions, 6 deletions
diff --git a/tests/lib/AppFramework/Db/MapperTest.php b/tests/lib/AppFramework/Db/MapperTest.php
index 4509b1b80c7..e5a4b63b7a3 100644
--- a/tests/lib/AppFramework/Db/MapperTest.php
+++ b/tests/lib/AppFramework/Db/MapperTest.php
@@ -44,12 +44,24 @@ class Example extends Entity {
class ExampleMapper extends Mapper {
- public function __construct(IDBConnection $db) { parent::__construct($db, 'table'); }
- public function find($table, $id) { return $this->findOneQuery($table, $id); }
- public function findOneEntity($table, $id) { return $this->findEntity($table, $id); }
- public function findAllEntities($table) { return $this->findEntities($table); }
- public function mapRow($row) { return $this->mapRowToEntity($row); }
- public function execSql($sql, $params) { return $this->execute($sql, $params); }
+ public function __construct(IDBConnection $db) {
+ parent::__construct($db, 'table');
+ }
+ public function find($table, $id) {
+ return $this->findOneQuery($table, $id);
+ }
+ public function findOneEntity($table, $id) {
+ return $this->findEntity($table, $id);
+ }
+ public function findAllEntities($table) {
+ return $this->findEntities($table);
+ }
+ public function mapRow($row) {
+ return $this->mapRowToEntity($row);
+ }
+ public function execSql($sql, $params) {
+ return $this->execute($sql, $params);
+ }
}