diff --git a/tests/lib/appframework/db/EntityTest.php b/tests/lib/appframework/db/EntityTest.php
index 9de44b9b3ba83c334fdd015124e18e0737115c4f..d98cb549422dcf1b1b617c619609a036e1ef3907 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 42aa1ade8106d2e592a6bcaa3d23426960735e8e..fd1acd0367ebc9426fb8fcd7d27678b3811c187a 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;
 };