/** * Test for method \Magento\UrlRewrite\Block\Catalog\Category\Tree::getCategoryCollection() */ public function testGetCategoryCollection() { $collection = $this->_treeBlock->getCategoryCollection(); $this->assertInstanceOf('Magento\\Catalog\\Model\\ResourceModel\\Category\\Collection', $collection); }