function ParamConverterManagerTest::testGetConverterException

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/ParamConverter/ParamConverterManagerTest.php \Drupal\Tests\Core\ParamConverter\ParamConverterManagerTest::testGetConverterException()
  2. 8.9.x core/tests/Drupal/Tests/Core/ParamConverter/ParamConverterManagerTest.php \Drupal\Tests\Core\ParamConverter\ParamConverterManagerTest::testGetConverterException()
  3. 11.x core/tests/Drupal/Tests/Core/ParamConverter/ParamConverterManagerTest.php \Drupal\Tests\Core\ParamConverter\ParamConverterManagerTest::testGetConverterException()

Tests \Drupal\Core\ParamConverter\ParamConverterManager::getConverter().

@covers ::getConverter

File

core/tests/Drupal/Tests/Core/ParamConverter/ParamConverterManagerTest.php, line 58

Class

ParamConverterManagerTest
@coversDefaultClass \Drupal\Core\ParamConverter\ParamConverterManager @group ParamConverter

Namespace

Drupal\Tests\Core\ParamConverter

Code

public function testGetConverterException() : void {
    $this->expectException(\InvalidArgumentException::class);
    $this->manager
        ->getConverter('undefined.converter');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.