create(\Magento\Cookie\Model\Config\Backend\Path::class); $model->setValue($invalidPath); $model->save(); } }