mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 23:03:00 -04:00
add missing quotes + field declarations
This commit is contained in:
parent
95dd58bfc0
commit
ab4136f432
1 changed files with 16 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue