Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/stolberg/web/core/modules/workflows/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/stolberg/web/core/modules/workflows/tests/src/Kernel/WorkflowValidationTest.php

<?php

declare(strict_types=1);

namespace Drupal\Tests\workflows\Kernel;

use Drupal\KernelTests\Core\Config\ConfigEntityValidationTestBase;
use Drupal\workflows\Entity\Workflow;

/**
 * Tests validation of workflow entities.
 *
 * @group workflows
 */
class WorkflowValidationTest extends ConfigEntityValidationTestBase {

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

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

    $this->entity = Workflow::create([
      'id' => 'test',
      'label' => 'Test',
      'type' => 'workflow_type_test',
    ]);
    $this->entity->save();
  }

  /**
   * Tests that the workflow type plugin is validated.
   */
  public function testTypePluginIsValidated(): void {
    $this->entity->set('type', 'non_existent');
    $this->assertValidationErrors([
      'type' => "The 'non_existent' plugin does not exist.",
    ]);
  }

}

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