Neos\Flow\Tests\Unit\Property\TypeConverter\PersistentObjectConverterTest::convertFromShouldReturnTargetNotFoundErrorIfNoMatchingObjectWasFound PHP Method

convertFromShouldReturnTargetNotFoundErrorIfNoMatchingObjectWasFound() public method

    public function convertFromShouldReturnTargetNotFoundErrorIfNoMatchingObjectWasFound()
    {
        $this->setupMockQuery(0, $this->never());
        $source = ['__identity' => ['key1' => 'value1', 'key2' => 'value2']];
        $actual = $this->converter->convertFrom($source, 'SomeType');
        $this->assertInstanceOf(TargetNotFoundError::class, $actual);
    }