function UuidResolverTest::testResolveNotInInterface
Same name in other branches
- 8.9.x core/modules/serialization/tests/src/Unit/EntityResolver/UuidResolverTest.php \Drupal\Tests\serialization\Unit\EntityResolver\UuidResolverTest::testResolveNotInInterface()
- 10 core/modules/serialization/tests/src/Unit/EntityResolver/UuidResolverTest.php \Drupal\Tests\serialization\Unit\EntityResolver\UuidResolverTest::testResolveNotInInterface()
- 11.x core/modules/serialization/tests/src/Unit/EntityResolver/UuidResolverTest.php \Drupal\Tests\serialization\Unit\EntityResolver\UuidResolverTest::testResolveNotInInterface()
Tests resolve() with a class using the incorrect interface.
File
-
core/
modules/ serialization/ tests/ src/ Unit/ EntityResolver/ UuidResolverTest.php, line 41
Class
- UuidResolverTest
- @coversDefaultClass \Drupal\serialization\EntityResolver\UuidResolver @group serialization
Namespace
Drupal\Tests\serialization\Unit\EntityResolverCode
public function testResolveNotInInterface() {
$this->entityRepository
->expects($this->never())
->method('loadEntityByUuid');
$normalizer = $this->createMock('Symfony\\Component\\Serializer\\Normalizer\\NormalizerInterface');
$this->assertNull($this->resolver
->resolve($normalizer, [], 'test_type'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.