public function ProxyBuilderTest::testBuildNoMethod in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php \Drupal\Tests\Component\ProxyBuilder\ProxyBuilderTest::testBuildNoMethod()
- 9 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\ProxyBuilderCode
public function testBuildNoMethod() {
$class = 'Drupal\\Tests\\Component\\ProxyBuilder\\TestServiceNoMethod';
$result = $this->proxyBuilder
->build($class);
$this
->assertEquals($this
->buildExpectedClass($class, ''), $result);
}