diff --git a/core/modules/locale/tests/src/Kernel/LocalePrepareDirectoryTest.php b/core/modules/locale/tests/src/Kernel/LocalePrepareDirectoryTest.php index 16f22c3a93..1582dc0175 100644 --- a/core/modules/locale/tests/src/Kernel/LocalePrepareDirectoryTest.php +++ b/core/modules/locale/tests/src/Kernel/LocalePrepareDirectoryTest.php @@ -15,7 +15,7 @@ class LocalePrepareDirectoryTest extends KernelTestBase { /** * {@inheritdoc} */ - public static $modules = ['language', 'locale', 'system']; + protected static $modules = ['language', 'locale', 'system']; /** * Checks if a translations directory gets created. @@ -28,7 +28,7 @@ public function testPrepareDirectory() { ->set('translation.use_source', LOCALE_TRANSLATION_USE_SOURCE_LOCAL) ->save(); - $this->assertDirectoryNotExists($directory); + $this->assertDirectoryDoesNotExist($directory); locale_prepare_translations_directory(); $this->assertDirectoryExists($directory); }