[Pkg-owncloud-commits] [owncloud] 49/59: kill unused require of MapperTestUtility.php

David Prévot taffit at moszumanska.debian.org
Fri Jul 18 16:19:30 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit a66ee261870cda36e667dba0f240799805123b94
Author: Thomas Müller <thomas.mueller at tmit.eu>
Date:   Thu Jul 17 16:35:00 2014 +0200

    kill unused require of MapperTestUtility.php
---
 tests/lib/appframework/db/{MapperTest.php => mappertest.php} | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/tests/lib/appframework/db/MapperTest.php b/tests/lib/appframework/db/mappertest.php
similarity index 99%
rename from tests/lib/appframework/db/MapperTest.php
rename to tests/lib/appframework/db/mappertest.php
index 4ddc4ef..42aa1ad 100644
--- a/tests/lib/appframework/db/MapperTest.php
+++ b/tests/lib/appframework/db/mappertest.php
@@ -25,9 +25,7 @@
 namespace OCP\AppFramework\Db;
 
 use \OCP\IDb;
-
-
-require_once __DIR__ . '/MapperTestUtility.php';
+use Test\AppFramework\Db\MapperTestUtility;
 
 /**
  * @method integer getId()
@@ -54,6 +52,9 @@ class ExampleMapper extends Mapper {
 
 class MapperTest extends MapperTestUtility {
 
+	/**
+	 * @var Mapper
+	 */
 	private $mapper;
 
 	public function setUp(){
@@ -276,4 +277,4 @@ class MapperTest extends MapperTestUtility {
 		$result = $this->mapper->findAllEntities($sql);
 		$this->assertEquals(array($entity1, $entity2), $result);
 	}
-}
\ No newline at end of file
+}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list