Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CategoryConfigReaderTest.php
Go to the documentation of this file.
1 <?php
8 
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 }