test_support-1.0.x-dev/tests/src/Kernel/Support/InteractsWithContainerTest.php

tests/src/Kernel/Support/InteractsWithContainerTest.php
<?php

namespace Drupal\Tests\test_support\Kernel\Support;

use Drupal\KernelTests\KernelTestBase;
use Drupal\node\Routing\RouteSubscriber;
use Drupal\Tests\test_support\Traits\Support\InteractsWithContainer;

class InteractsWithContainerTest extends KernelTestBase
{
    use InteractsWithContainer;

    /** @var string[] */
    protected static $modules = [
        'node',
    ];

    /** @test */
    public function resolves_service_by_id(): void
    {
        $this->assertInstanceOf(RouteSubscriber::class, $this->service('node.route_subscriber'));
    }
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc