Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/store/web/modules/contrib/commerce/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/store/web/modules/contrib/commerce/tests/src/Kernel/CommerceTwigExtensionTest.php

<?php

namespace Drupal\Tests\commerce\Kernel;

use Drupal\commerce_price\Entity\Currency;

/**
 * Tests the commerce twig filters.
 *
 * @group commerce
 */
class CommerceTwigExtensionTest extends CommerceKernelTestBase {

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

  /**
   * Tests trying to render a config entity.
   */
  public function testRenderConfigEntity() {
    $theme = [
      '#theme' => 'render_entity',
      '#entity' => Currency::load('USD'),
    ];
    $this->expectException('InvalidArgumentException');
    $this->render($theme);
  }

  /**
   * Tests rendering a content entity.
   */
  public function testRenderContentEntity() {
    $account = $this->createUser();

    $theme = [
      '#theme' => 'render_entity',
      '#entity' => $account,
    ];
    $this->render($theme);
    $this->assertText('Member for');
  }

}

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