X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Ffile%2Ftests%2Fsrc%2FFunctional%2FUpdate%2FFileUsageTemporaryDeletionConfigurationUpdateTest.php;fp=web%2Fcore%2Fmodules%2Ffile%2Ftests%2Fsrc%2FFunctional%2FUpdate%2FFileUsageTemporaryDeletionConfigurationUpdateTest.php;h=1f685befe78623c6609539f081ab8be75836ef7f;hp=0000000000000000000000000000000000000000;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/modules/file/tests/src/Functional/Update/FileUsageTemporaryDeletionConfigurationUpdateTest.php b/web/core/modules/file/tests/src/Functional/Update/FileUsageTemporaryDeletionConfigurationUpdateTest.php new file mode 100644 index 000000000..1f685befe --- /dev/null +++ b/web/core/modules/file/tests/src/Functional/Update/FileUsageTemporaryDeletionConfigurationUpdateTest.php @@ -0,0 +1,42 @@ +databaseDumpFiles = [ + __DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz', + ]; + } + + /** + * Tests that make_unused_managed_files_temporary conditions are correct. + * + * Verify that the before and after conditions for the variable are correct. + */ + public function testUpdateHookN() { + $this->assertIdentical($this->config('file.settings')->get('make_unused_managed_files_temporary'), NULL); + $this->runUpdates(); + $this->assertIdentical($this->config('file.settings')->get('make_unused_managed_files_temporary'), FALSE); + $this->assertResponse('200'); + } + +}