function ProxyBuilderTest::testBuildNoMethod
Same name in other branches
- 9 core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php \Drupal\Tests\Component\ProxyBuilder\ProxyBuilderTest::testBuildNoMethod()
- 8.9.x core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php \Drupal\Tests\Component\ProxyBuilder\ProxyBuilderTest::testBuildNoMethod()
- 11.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.
@covers ::build @covers ::buildConstructorMethod @covers ::buildLazyLoadItselfMethod
File
-
core/
tests/ Drupal/ Tests/ Component/ ProxyBuilder/ ProxyBuilderTest.php, line 63
Class
- ProxyBuilderTest
- @coversDefaultClass \Drupal\Component\ProxyBuilder\ProxyBuilder @group proxy_builder
Namespace
Drupal\Tests\Component\ProxyBuilderCode
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.