spec\LdapTools\Factory\LdapObjectSchemaFactorySpec::it_should_not_build_the_cache_item_if_it_is_in_the_cache_and_auto_cache_is_not_on PHP Метод

it_should_not_build_the_cache_item_if_it_is_in_the_cache_and_auto_cache_is_not_on() публичный Метод

public it_should_not_build_the_cache_item_if_it_is_in_the_cache_and_auto_cache_is_not_on ( LdapTools\Cache\CacheInterface $cache, LdapTools\Schema\Parser\SchemaParserInterface $parser, $dispatcher )
$cache LdapTools\Cache\CacheInterface
$parser LdapTools\Schema\Parser\SchemaParserInterface
    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);
    }