mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-07 03:14:33 +08:00
ZIP Exports: Changed the instance id mechanism
Some checks failed
analyse-php / build (push) Has been cancelled
lint-php / build (push) Has been cancelled
test-migrations / build (8.1) (push) Has been cancelled
test-migrations / build (8.2) (push) Has been cancelled
test-migrations / build (8.3) (push) Has been cancelled
test-php / build (8.1) (push) Has been cancelled
test-php / build (8.2) (push) Has been cancelled
test-php / build (8.3) (push) Has been cancelled
Some checks failed
analyse-php / build (push) Has been cancelled
lint-php / build (push) Has been cancelled
test-migrations / build (8.1) (push) Has been cancelled
test-migrations / build (8.2) (push) Has been cancelled
test-migrations / build (8.3) (push) Has been cancelled
test-php / build (8.1) (push) Has been cancelled
test-php / build (8.2) (push) Has been cancelled
test-php / build (8.3) (push) Has been cancelled
Adds an instance id via app settings.
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user