You are here

public function ProxyBuilderTest::testBuildNoMethod in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php \Drupal\Tests\Component\ProxyBuilder\ProxyBuilderTest::testBuildNoMethod()
  2. 10 core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php \Drupal\Tests\Component\ProxyBuilder\ProxyBuilderTest::testBuildNoMethod()

Tests the basic methods like the constructor and the lazyLoadItself method.

@covers ::build @covers ::buildConstructorMethod @covers ::buildLazyLoadItselfMethod

File

core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php, line 66
Contains \Drupal\Tests\Component\ProxyBuilder\ProxyBuilderTest.

Class

ProxyBuilderTest
@coversDefaultClass \Drupal\Component\ProxyBuilder\ProxyBuilder @group proxy_builder

Namespace

Drupal\Tests\Component\ProxyBuilder

Code

public function testBuildNoMethod() {
  $class = 'Drupal\\Tests\\Component\\ProxyBuilder\\TestServiceNoMethod';
  $result = $this->proxyBuilder
    ->build($class);
  $this
    ->assertEquals($this
    ->buildExpectedClass($class, ''), $result);
}