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