summaryrefslogtreecommitdiffstats
path: root/tests/lib/DB
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/DB')
-rw-r--r--tests/lib/DB/DBSchemaTest.php12
-rw-r--r--tests/lib/DB/LegacyDBTest.php6
-rw-r--r--tests/lib/DB/SchemaDiffTest.php2
3 files changed, 10 insertions, 10 deletions
diff --git a/tests/lib/DB/DBSchemaTest.php b/tests/lib/DB/DBSchemaTest.php
index 5fb68fdf258..4b249d07c45 100644
--- a/tests/lib/DB/DBSchemaTest.php
+++ b/tests/lib/DB/DBSchemaTest.php
@@ -39,12 +39,12 @@ class DBSchemaTest extends TestCase {
$r = '_' . \OC::$server->getSecureRandom()->
generate(4, ISecureRandom::CHAR_LOWER . ISecureRandom::CHAR_DIGITS) . '_';
- $content = file_get_contents( $dbfile );
- $content = str_replace( '*dbprefix*', '*dbprefix*'.$r, $content );
- file_put_contents( $this->schema_file, $content );
- $content = file_get_contents( $dbfile2 );
- $content = str_replace( '*dbprefix*', '*dbprefix*'.$r, $content );
- file_put_contents( $this->schema_file2, $content );
+ $content = file_get_contents($dbfile);
+ $content = str_replace('*dbprefix*', '*dbprefix*'.$r, $content);
+ file_put_contents($this->schema_file, $content);
+ $content = file_get_contents($dbfile2);
+ $content = str_replace('*dbprefix*', '*dbprefix*'.$r, $content);
+ file_put_contents($this->schema_file2, $content);
$this->table1 = $r.'cntcts_addrsbks';
$this->table2 = $r.'cntcts_cards';
diff --git a/tests/lib/DB/LegacyDBTest.php b/tests/lib/DB/LegacyDBTest.php
index cd4befdbe52..cf4c746a4dd 100644
--- a/tests/lib/DB/LegacyDBTest.php
+++ b/tests/lib/DB/LegacyDBTest.php
@@ -62,9 +62,9 @@ class LegacyDBTest extends \Test\TestCase {
$dbFile = \OC::$SERVERROOT.'/tests/data/db_structure.xml';
$r = $this->getUniqueID('_', 4).'_';
- $content = file_get_contents( $dbFile );
- $content = str_replace( '*dbprefix*', '*dbprefix*'.$r, $content );
- file_put_contents( self::$schema_file, $content );
+ $content = file_get_contents($dbFile);
+ $content = str_replace('*dbprefix*', '*dbprefix*'.$r, $content);
+ file_put_contents(self::$schema_file, $content);
OC_DB::createDbFromStructure(self::$schema_file);
$this->test_prefix = $r;
diff --git a/tests/lib/DB/SchemaDiffTest.php b/tests/lib/DB/SchemaDiffTest.php
index 78963698571..c98cf173d8f 100644
--- a/tests/lib/DB/SchemaDiffTest.php
+++ b/tests/lib/DB/SchemaDiffTest.php
@@ -72,7 +72,7 @@ class SchemaDiffTest extends TestCase {
*/
public function testZeroChangeOnSchemaMigrations($xml) {
- $xml = str_replace( '*dbprefix*', $this->testPrefix, $xml );
+ $xml = str_replace('*dbprefix*', $this->testPrefix, $xml);
$schemaFile = $this->schemaFile;
file_put_contents($schemaFile, $xml);