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]); }