function ChainEntityResolverTest::testResolverWithResolvedToZero
Tests the resolve method where one resolver returns 0.
@legacy-covers ::__construct @legacy-covers ::resolve
File
-
core/
modules/ serialization/ tests/ src/ Unit/ EntityResolver/ ChainEntityResolverTest.php, line 121
Class
Namespace
Drupal\Tests\serialization\Unit\EntityResolverCode
public function testResolverWithResolvedToZero() : void {
$resolvers = [
$this->createEntityResolverMock(0),
$this->createEntityResolverMock(NULL, FALSE),
];
$resolver = new ChainEntityResolver($resolvers);
$this->assertSame(0, $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.