Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
magento2-base
dev
tests
integration
testsuite
Magento
Sitemap
Model
ItemProvider
CategoryConfigReaderTest.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Sitemap\Model\ItemProvider
;
8
9
use
Magento\Store\Model\Store
;
10
use
Magento\TestFramework\Helper\Bootstrap
;
11
12
class
CategoryConfigReaderTest
extends
\PHPUnit\Framework\TestCase
13
{
17
private
$model =
null
;
18
19
protected
function
setUp
()
20
{
21
$this->model =
Bootstrap::getObjectManager
()->get(CategoryConfigReader::class);
22
}
23
27
public
function
testGetChangeFrequency
()
28
{
29
$this->assertEquals(
'daily'
, $this->model->getChangeFrequency(
Store::DEFAULT_STORE_ID
));
30
$this->assertEquals(
'monthly'
, $this->model->getChangeFrequency(
Store::DISTRO_STORE_ID
));
31
}
32
36
public
function
testGetCategoryPriority
()
37
{
38
$this->assertEquals(0.5, $this->model->getPriority(
Store::DEFAULT_STORE_ID
));
39
$this->assertEquals(100, $this->model->getPriority(
Store::DISTRO_STORE_ID
));
40
}
41
}
Magento\Sitemap\Model\ItemProvider\CategoryConfigReaderTest\testGetCategoryPriority
testGetCategoryPriority()
Definition:
CategoryConfigReaderTest.php:36
Magento\Store\Model\Store\DISTRO_STORE_ID
const DISTRO_STORE_ID
Definition:
Store.php:129
Magento\Sitemap\Model\ItemProvider\CategoryConfigReaderTest
Definition:
CategoryConfigReaderTest.php:12
Magento\TestFramework\Helper\Bootstrap
Definition:
Bootstrap.php:12
Magento\Store\Model\Store\DEFAULT_STORE_ID
const DEFAULT_STORE_ID
Definition:
Store.php:124
Magento\Sitemap\Model\ItemProvider
Definition:
CategoryConfigReaderTest.php:7
Magento\Sitemap\Model\ItemProvider\CategoryConfigReaderTest\testGetChangeFrequency
testGetChangeFrequency()
Definition:
CategoryConfigReaderTest.php:27
Magento\Sitemap\Model\ItemProvider\CategoryConfigReaderTest\setUp
setUp()
Definition:
CategoryConfigReaderTest.php:19
Magento\Store\Model\Store
Definition:
Store.php:38
Magento\TestFramework\Helper\Bootstrap\getObjectManager
static getObjectManager()
Definition:
Bootstrap.php:125