Yeah, I guess thats OK (in fact I'm not 100% - seems slightly wrong despite my
previous comment to use a mapped document in a unit test). I would not place a
non-mapped document in /Resources/Document btw.

Resources\Document btw.
On Tue, Aug 06, 2013 at 01:40:08AM -0700, Wouter J wrote:
>    In Tests/Unit/Doctrine/Orm/ContentRepositoryTest.php:
> 
>  > +            ->expects($this->any())
>  > +            ->method('getManager')
>  > +            ->will($this->returnValue($this->objectManager))
>  > +        ;
>  > +
>  > +        $contentRepository = new ContentRepository($this->managerRegistry);
>  > +        $contentRepository->setManagerName('default');
>  > +
>  > +        $foundDocument = $contentRepository->findById('id-123');
>  > +
>  > +        $this->assertInstanceOf('Symfony\Cmf\Bundle\RoutingBundle\Tests\Doctrine\Phpcr\TestDocument', $foundDocument);
>  > +        $this->assertSame($this->document, $foundDocument);
>  > +    }
>  > +}
>  > +
>  > +// todo move to a fixtures directory, to use it for both phpcr and orm tests
> 
>    [1]@dantleech david and I just discovered the Content class in the Testing
>    component, is it save to use that one instead of the Content fixture in
>    Tests/Resources/Document?
> 
>    —
>    Reply to this email directly or [2]view it on GitHub.
> 
> References
> 
>    Visible links
>    1. https://github.com/dantleech
>    2. https://github.com/symfony-cmf/RoutingBundle/pull/144/files#r5599104