Commit f9408cef authored by catch's avatar catch
Browse files

fix: #3557167 Fix deprecations in...

fix: #3557167 Fix deprecations in \Drupal\Core\ImageToolkit\ImageToolkitManager::getDefaultToolkitId() due to kernel testing

By: @alexpott
By: @smustgrave
(cherry picked from commit 3869ed8a)
parent 00f595f1
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -45,6 +45,7 @@ class ConfigActionsTest extends KernelTestBase {
   */
  protected function setUp(): void {
    parent::setUp();
    $this->installConfig('system');
    $this->container->get(ThemeInstallerInterface::class)->install([
      'olivero',
      'claro',
+2 −1
Original line number Diff line number Diff line
@@ -89,6 +89,7 @@ class ContentModerationStateTest extends KernelTestBase {
  protected function setUp(): void {
    parent::setUp();

    $this->installConfig('system');
    $this->installSchema('node', 'node_access');
    $this->installEntitySchema('node');
    $this->installEntitySchema('user');
@@ -102,7 +103,7 @@ protected function setUp(): void {
    $this->installEntitySchema('content_moderation_state');
    $this->installConfig('content_moderation');
    $this->installSchema('file', 'file_usage');
    $this->installConfig(['field', 'file', 'filter', 'image', 'media', 'node', 'system']);
    $this->installConfig(['field', 'file', 'filter', 'image', 'media', 'node']);

    // Add the French language.
    ConfigurableLanguage::createFromLangcode('fr')->save();
+2 −0
Original line number Diff line number Diff line
@@ -65,6 +65,8 @@ class ContentTranslationFieldSyncRevisionTest extends EntityKernelTestBase {
  protected function setUp(): void {
    parent::setUp();

    $this->installConfig('system');

    $entity_type_id = 'entity_test_mulrev';
    $this->installEntitySchema($entity_type_id);
    $this->installEntitySchema('file');
+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ class ConfigActionsTest extends KernelTestBase {
   */
  protected function setUp(): void {
    parent::setUp();
    $this->installConfig(['image', 'system']);
    $this->installConfig(['system', 'image']);
    $this->configActionManager = $this->container->get('plugin.manager.config_action');
  }

+3 −0
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ class ImageEffectsTest extends KernelTestBase {
   * {@inheritdoc}
   */
  protected static $modules = [
    'system',
    'image',
    'image_module_test',
    'image_test',
@@ -42,6 +43,7 @@ class ImageEffectsTest extends KernelTestBase {
   */
  protected function setUp(): void {
    parent::setUp();
    $this->installConfig('system');
    $this->imageEffectPluginManager = $this->container->get('plugin.manager.image.effect');
  }

@@ -137,6 +139,7 @@ public function testConvertAvifEffect(): void {
   * Tests the 'image_convert_avif' effect with webp fallback.
   */
  public function testConvertAvifEffectFallback(): void {
    $this->config('system.image')->set('toolkit', 'test')->save();
    $this->assertImageEffect(['convert'], 'image_convert_avif', [
      'extension' => 'webp',
    ]);
Loading