Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html1/testsite/web/core/modules/color/tests/src/Kernel/

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/testsite/web/core/modules/color/tests/src/Kernel/ColorLegacyTest.php

<?php

namespace Drupal\Tests\color\Kernel;

use Drupal\KernelTests\KernelTestBase;

/**
 * Tests Color module's legacy code.
 *
 * @group color
 * @group legacy
 */
class ColorLegacyTest extends KernelTestBase {

  /**
   * {@inheritdoc}
   */
  protected static $modules = ['system', 'color'];

  /**
   * {@inheritdoc}
   */
  protected function setUp() {
    parent::setUp();

    $this->container->get('theme_installer')->install(['bartik']);
    $this->config('system.theme')
      ->set('default', 'bartik')
      ->save();
  }

  /**
   * Tests color_block_view_pre_render() deprecation.
   *
   * @expectedDeprecation color_block_view_pre_render() is deprecated in Drupal 8.8.0 and will be removed before Drupal 9.0.0. Use \Drupal\color\ColorSystemBrandingBlockAlter::preRender() instead. See https://www.drupal.org/node/2966725
   */
  public function testColorSystemBrandingBlockAlterPreRender() {
    $render = color_block_view_pre_render([]);
    $this->assertEquals(['config:color.theme.bartik'], $render['#cache']['tags']);
  }

}

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