summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-12-17 10:05:20 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2013-12-17 10:05:20 +0100
commitab4136f4329bf702e72e6eaa3fd1e32b1c1f1cd4 (patch)
tree88576f787d329544a02e429071e5dbce4396f3f4 /tests
parent95dd58bfc079fd9a46b1928ce22d5fb3faad44bd (diff)
downloadnextcloud-server-ab4136f4329bf702e72e6eaa3fd1e32b1c1f1cd4.tar.gz
nextcloud-server-ab4136f4329bf702e72e6eaa3fd1e32b1c1f1cd4.zip
add missing quotes + field declarations
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/db.php17
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/lib/db.php b/tests/lib/db.php
index 6b6d6b91088..3fcdf8a7dc6 100644
--- a/tests/lib/db.php
+++ b/tests/lib/db.php
@@ -12,6 +12,21 @@ class Test_DB extends PHPUnit_Framework_TestCase {
protected static $schema_file = 'static://test_db_scheme';
protected $test_prefix;
+ /**
+ * @var string
+ */
+ private $table1;
+
+ /**
+ * @var string
+ */
+ private $table2;
+
+ /**
+ * @var string
+ */
+ private $table3;
+
public function setUp() {
$dbfile = OC::$SERVERROOT.'/tests/data/db_structure.xml';
@@ -154,7 +169,7 @@ class Test_DB extends PHPUnit_Framework_TestCase {
$result = $query->execute(array($expected, 'uri_1', 'This is a vCard'));
$this->assertEquals(1, $result);
- $actual = OC_DB::prepare("SELECT `fullname` FROM $table")->execute()->fetchOne();
+ $actual = OC_DB::prepare("SELECT `fullname` FROM `$table`")->execute()->fetchOne();
$this->assertSame($expected, $actual);
}
}