Skip to content
Snippets Groups Projects

Issue #3238915: Refactor (if feasible) uses of the jQuery ready function to use VanillaJS

Closed Issue #3238915: Refactor (if feasible) uses of the jQuery ready function to use VanillaJS
Closed Harumi Jang requested to merge issue/drupal-3238915:3238915-refactor-if-feasible into 9.3.x
1 file
+ 0
30
Compare changes
  • Side-by-side
  • Inline
  • 890749c0
    Issue #3262183 by daffie, longwave: Remove DrupalKernelLegacyTest · 890749c0
    catch authored
<?php
namespace Drupal\Tests\Core\DrupalKernel;
use Drupal\Core\DrupalKernel;
use Drupal\Tests\UnitTestCase;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Event\KernelEvent;
/**
* @coversDefaultClass \Drupal\Core\DrupalKernel
* @group legacy
*/
class DrupalKernelLegacyTest extends UnitTestCase {
/**
* Tests deprecation message in overridden KernelEvent.
*
* @covers ::isMasterRequest
*/
public function testKernelEventDeprecation() {
$kernel = $this->createMock(DrupalKernel::class);
$request = $this->createMock(Request::class);
$event = new KernelEvent($kernel, $request, $kernel::MAIN_REQUEST);
$this->expectDeprecation('Since symfony/http-kernel 5.3: "Symfony\Component\HttpKernel\Event\KernelEvent::isMasterRequest()" is deprecated, use "isMainRequest()" instead.');
$this->assertTrue($event->isMasterRequest());
}
}
Loading