function it_should_not_build_the_cache_item_if_it_is_in_the_cache_and_auto_cache_is_not_on(CacheInterface $cache, SchemaParserInterface $parser, $dispatcher)
{
$cache->getUseAutoCache()->willReturn(false);
$cache->contains(LdapObjectSchema::getCacheType(), 'ad.user')->willReturn(true);
$cache->set(Argument::any())->shouldNotBeCalled();
$cache->get(Argument::any(), Argument::any())->shouldBeCalled();
$parser->parse('ad', 'user')->shouldNotBeCalled();
$this->beConstructedWith($cache, $parser, $dispatcher);
$this->get('ad', LdapObjectType::USER);
}