public function testIsAllowed() { $this->scopeConfig->expects($this->once())->method('isSetFlag')->with('rss/catalog/category', \Magento\Store\Model\ScopeInterface::SCOPE_STORE)->will($this->returnValue(true)); $this->assertEquals(true, $this->block->isAllowed()); }