Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/rocksensor/web/core/modules/update/tests/src/Unit/Menu/

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/html/rocksensor/web/core/modules/update/tests/src/Unit/Menu/UpdateLocalTasksTest.php

<?php

declare(strict_types=1);

namespace Drupal\Tests\update\Unit\Menu;

use Drupal\Tests\Core\Menu\LocalTaskIntegrationTestBase;

/**
 * Tests existence of update local tasks.
 *
 * @group update
 */
class UpdateLocalTasksTest extends LocalTaskIntegrationTestBase {

  /**
   * {@inheritdoc}
   */
  protected function setUp(): void {
    $this->directoryList = ['update' => 'core/modules/update'];
    parent::setUp();
  }

  /**
   * Checks update report tasks.
   *
   * @dataProvider getUpdateReportRoutes
   */
  public function testUpdateReportLocalTasks($route): void {
    $this->assertLocalTasks($route, [
      0 => ['update.status', 'update.settings', 'update.report_update'],
    ]);
  }

  /**
   * Provides a list of report routes to test.
   */
  public static function getUpdateReportRoutes() {
    return [
      ['update.status'],
      ['update.settings'],
      ['update.report_update'],
    ];
  }

  /**
   * Checks update module tasks.
   *
   * @dataProvider getUpdateModuleRoutes
   */
  public function testUpdateModuleLocalTasks($route): void {
    $this->assertLocalTasks($route, [
      0 => ['update.module_update'],
    ]);
  }

  /**
   * Provides a list of module routes to test.
   */
  public static function getUpdateModuleRoutes() {
    return [
      ['update.module_update'],
    ];
  }

  /**
   * Checks update theme tasks.
   *
   * @dataProvider getUpdateThemeRoutes
   */
  public function testUpdateThemeLocalTasks($route): void {
    $this->assertLocalTasks($route, [
      0 => ['update.theme_update'],
    ]);
  }

  /**
   * Provides a list of theme routes to test.
   */
  public static function getUpdateThemeRoutes() {
    return [
      ['update.theme_update'],
    ];
  }

}

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