コード例 #1
0
ファイル: Store.php プロジェクト: mrbadao/magento-ce
 /**
  * Retrieve store session object
  *
  * @return \Magento\Framework\Session\SessionManagerInterface
  */
 protected function _getSession()
 {
     if (!$this->_session->isSessionExists()) {
         $this->_session->setName('store_' . $this->getCode());
         $this->_session->start();
     }
     return $this->_session;
 }
コード例 #2
0
 public function testSetName()
 {
     $this->_model->setName('test');
     $this->assertEquals('test', $this->_model->getName());
 }