function ProxyBuilderTest::testBuildNoMethod

Same name and namespace in other branches
  1. 11.x 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()
  3. 9 core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php \Drupal\Tests\Component\ProxyBuilder\ProxyBuilderTest::testBuildNoMethod()
  4. 8.9.x 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.

@legacy-covers ::build @legacy-covers ::buildConstructorMethod @legacy-covers ::buildLazyLoadItselfMethod

File

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

Class

ProxyBuilderTest
Tests Drupal\Component\ProxyBuilder\ProxyBuilder.

Namespace

Drupal\Tests\Component\ProxyBuilder

Code

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

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