]> BookStack Code Mirror - bookstack/blobdiff - tests/Exports/ZipExportTest.php
ZIP Exports: Changed the instance id mechanism
[bookstack] / tests / Exports / ZipExportTest.php
index 17891c73d73f171318b3712bb36730e5bbdeae52..ebe07d052bcd94a619ee68f9d0ea0878efc97785 100644 (file)
@@ -54,8 +54,10 @@ class ZipExportTest extends TestCase
         $version = trim(file_get_contents(base_path('version')));
         $this->assertEquals($version, $zip->data['instance']['version']);
 
-        $instanceId = decrypt($zip->data['instance']['id_ciphertext']);
-        $this->assertEquals('bookstack', $instanceId);
+        $zipInstanceId = $zip->data['instance']['id'];
+        $instanceId = setting('instance-id');
+        $this->assertNotEmpty($instanceId);
+        $this->assertEquals($instanceId, $zipInstanceId);
     }
 
     public function test_page_export()