public function UuidResolverTest::testResolveNotInInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/serialization/tests/src/Unit/EntityResolver/UuidResolverTest.php \Drupal\Tests\serialization\Unit\EntityResolver\UuidResolverTest::testResolveNotInInterface()
Test resolve() with a class using the incorrect interface.
File
- core/
modules/ serialization/ tests/ src/ Unit/ EntityResolver/ UuidResolverTest.php, line 47 - Contains \Drupal\Tests\serialization\Unit\EntityResolver\UuidResolverTest.
Class
- UuidResolverTest
- @coversDefaultClass \Drupal\serialization\EntityResolver\UuidResolver @group serialization
Namespace
Drupal\Tests\serialization\Unit\EntityResolverCode
public function testResolveNotInInterface() {
$this->entityManager
->expects($this
->never())
->method('loadEntityByUuid');
$normalizer = $this
->getMock('Symfony\\Component\\Serializer\\Normalizer\\NormalizerInterface');
$this
->assertNull($this->resolver
->resolve($normalizer, array(), 'test_type'));
}