diff options
author | Robin Appelman <robin@icewind.nl> | 2017-01-04 15:54:44 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2017-01-04 15:57:02 +0100 |
commit | bca91f2216569c18e8bea4d4761869ce2423aa87 (patch) | |
tree | 65ebfd7eb9145611ea7eb9e95f553451a97447d5 /tests/lib/DB/SchemaDiffTest.php | |
parent | 9dbcc1a177ea490d20c49186a8f8090342ecb5a9 (diff) | |
download | nextcloud-server-bca91f2216569c18e8bea4d4761869ce2423aa87.tar.gz nextcloud-server-bca91f2216569c18e8bea4d4761869ce2423aa87.zip |
remove static:// stream wrapper
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'tests/lib/DB/SchemaDiffTest.php')
-rw-r--r-- | tests/lib/DB/SchemaDiffTest.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/lib/DB/SchemaDiffTest.php b/tests/lib/DB/SchemaDiffTest.php index b7bb3c2a9cb..88c9abeb431 100644 --- a/tests/lib/DB/SchemaDiffTest.php +++ b/tests/lib/DB/SchemaDiffTest.php @@ -47,9 +47,13 @@ class SchemaDiffTest extends TestCase { /** @var string */ private $testPrefix; + private $schemaFile; + protected function setUp() { parent::setUp(); + $this->schemaFile = \OC::$server->getTempManager()->getTemporaryFile(); + $this->config = \OC::$server->getConfig(); $this->connection = \OC::$server->getDatabaseConnection(); $this->manager = new MDB2SchemaManager($this->connection); @@ -57,7 +61,7 @@ class SchemaDiffTest extends TestCase { } protected function tearDown() { - $this->manager->removeDBStructure('static://test_db_scheme'); + $this->manager->removeDBStructure($this->schemaFile); parent::tearDown(); } @@ -68,7 +72,7 @@ class SchemaDiffTest extends TestCase { public function testZeroChangeOnSchemaMigrations($xml) { $xml = str_replace( '*dbprefix*', $this->testPrefix, $xml ); - $schemaFile = 'static://test_db_scheme'; + $schemaFile = $this->schemaFile; file_put_contents($schemaFile, $xml); // apply schema |