aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-08-27 15:28:22 +0200
committerLukas Reschke <lukas@owncloud.com>2014-08-27 15:28:22 +0200
commit13012fb5f77baac8be21cb91cd84312e61a288e5 (patch)
treeb53aa8e96281c04071242b21cb56174159c70cf4
parentc35d60f6d80dbb244b6223de3fdb894b0ef34d34 (diff)
parent47a2e31c93b2c172bcc9ce84a3ebb9904b0fd612 (diff)
downloadnextcloud-server-13012fb5f77baac8be21cb91cd84312e61a288e5.tar.gz
nextcloud-server-13012fb5f77baac8be21cb91cd84312e61a288e5.zip
Merge pull request #10666 from ogasser/appframework_db_tests
Make Entity properties ```protected``` as in docs
-rw-r--r--tests/lib/appframework/db/EntityTest.php10
-rw-r--r--tests/lib/appframework/db/mappertest.php4
2 files changed, 7 insertions, 7 deletions
diff --git a/tests/lib/appframework/db/EntityTest.php b/tests/lib/appframework/db/EntityTest.php
index 9de44b9b3ba..d98cb549422 100644
--- a/tests/lib/appframework/db/EntityTest.php
+++ b/tests/lib/appframework/db/EntityTest.php
@@ -37,10 +37,10 @@ namespace OCP\AppFramework\Db;
* @method void setPreName(string $preName)
*/
class TestEntity extends Entity {
- public $name;
- public $email;
- public $testId;
- public $preName;
+ protected $name;
+ protected $email;
+ protected $testId;
+ protected $preName;
public function __construct($name=null){
$this->addType('testId', 'integer');
@@ -220,4 +220,4 @@ class EntityTest extends \PHPUnit_Framework_TestCase {
}
-} \ No newline at end of file
+}
diff --git a/tests/lib/appframework/db/mappertest.php b/tests/lib/appframework/db/mappertest.php
index 42aa1ade810..fd1acd0367e 100644
--- a/tests/lib/appframework/db/mappertest.php
+++ b/tests/lib/appframework/db/mappertest.php
@@ -36,8 +36,8 @@ use Test\AppFramework\Db\MapperTestUtility;
* @method void setPreName(string $preName)
*/
class Example extends Entity {
- public $preName;
- public $email;
+ protected $preName;
+ protected $email;
};