public function testAvailableContextLabels() { $container = $this->getMockContainer(); $container->expects($this->once())->method("get")->with("cache_context.foo")->will($this->returnValue(new FooCacheContext())); $cache_contexts = new CacheContexts($container, $this->getContextsFixture()); $labels = $cache_contexts->getLabels(); $expected = array("cache_context.foo" => "Foo"); $this->assertEquals($expected, $labels); }
public function testAvailableContextLabels() { $container = $this->getMockContainer(); $cache_contexts = new CacheContexts($container, $this->getContextsFixture()); $labels = $cache_contexts->getLabels(); $expected = array("foo" => "Foo"); $this->assertEquals($expected, $labels); }