function ChainEntityResolverTest::testResolverWithNoneResolvedUsingAddResolver
Same name in other branches
- 9 core/modules/serialization/tests/src/Unit/EntityResolver/ChainEntityResolverTest.php \Drupal\Tests\serialization\Unit\EntityResolver\ChainEntityResolverTest::testResolverWithNoneResolvedUsingAddResolver()
- 8.9.x core/modules/serialization/tests/src/Unit/EntityResolver/ChainEntityResolverTest.php \Drupal\Tests\serialization\Unit\EntityResolver\ChainEntityResolverTest::testResolverWithNoneResolvedUsingAddResolver()
- 10 core/modules/serialization/tests/src/Unit/EntityResolver/ChainEntityResolverTest.php \Drupal\Tests\serialization\Unit\EntityResolver\ChainEntityResolverTest::testResolverWithNoneResolvedUsingAddResolver()
Tests the resolve method with no matching resolvers, using addResolver.
@covers ::addResolver @covers ::resolve
File
-
core/
modules/ serialization/ tests/ src/ Unit/ EntityResolver/ ChainEntityResolverTest.php, line 70
Class
- ChainEntityResolverTest
- @coversDefaultClass \Drupal\serialization\EntityResolver\ChainEntityResolver @group serialization
Namespace
Drupal\Tests\serialization\Unit\EntityResolverCode
public function testResolverWithNoneResolvedUsingAddResolver() : void {
$resolver = new ChainEntityResolver();
$resolver->addResolver($this->createEntityResolverMock());
$resolver->addResolver($this->createEntityResolverMock());
$this->assertNull($resolver->resolve($this->testNormalizer, $this->testData, $this->testEntityType));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.