public function ChainEntityResolverTest::testResolverWithNoneResolved in Drupal 9
Same name and namespace in other branches
- 8 core/modules/serialization/tests/src/Unit/EntityResolver/ChainEntityResolverTest.php \Drupal\Tests\serialization\Unit\EntityResolver\ChainEntityResolverTest::testResolverWithNoneResolved()
- 10 core/modules/serialization/tests/src/Unit/EntityResolver/ChainEntityResolverTest.php \Drupal\Tests\serialization\Unit\EntityResolver\ChainEntityResolverTest::testResolverWithNoneResolved()
Tests the resolve method with no matching resolvers.
@covers ::__construct @covers ::resolve
File
- core/
modules/ serialization/ tests/ src/ Unit/ EntityResolver/ ChainEntityResolverTest.php, line 49
Class
- ChainEntityResolverTest
- @coversDefaultClass \Drupal\serialization\EntityResolver\ChainEntityResolver @group serialization
Namespace
Drupal\Tests\serialization\Unit\EntityResolverCode
public function testResolverWithNoneResolved() {
$resolvers = [
$this
->createEntityResolverMock(),
$this
->createEntityResolverMock(),
];
$resolver = new ChainEntityResolver($resolvers);
$this
->assertNull($resolver
->resolve($this->testNormalizer, $this->testData, $this->testEntityType));
}