示例#1
0
 public function testSetCookie()
 {
     $storeCode = 'store code';
     $this->assertArrayNotHasKey(Store::COOKIE_NAME, $_COOKIE);
     $this->model->setCode($storeCode);
     $this->model->setCookie();
     $this->assertEquals($storeCode, $_COOKIE[Store::COOKIE_NAME]);
 }