コード例 #1
0
 public function testGetStoreId()
 {
     $id = 42;
     $this->assertEquals($id, $this->model->setStoreId($id)->getStoreId());
 }
コード例 #2
0
 /**
  * @magentoDbIsolation enabled
  *
  * @throws \Exception
  */
 public function testCRUD()
 {
     $this->model->setStoreId($this->objectManager->get('Magento\\Store\\Model\\StoreManagerInterface')->getDefaultStoreView()->getId())->setRequestPath('fancy/url.html')->setTargetPath('catalog/product/view')->setIsSystem(1)->setOptions('RP');
     $crud = new \Magento\TestFramework\Entity($this->model, ['request_path' => 'fancy/url2.html']);
     $crud->testCrud();
 }