duan7007
2016-05-14 18:40
浏览 30
已采纳

Mink不会切换回会话?

$driver = clone $this->mink->getSession()->getDriver();
$driver->reset();
$this->mink->registerSession('new', new Session($driver));
$this->mink->setDefaultSessionName('new');
// Do things.

// Switch back to the original.
$this->mink->setDefaultSessionName('default');

Well, it didn't switch back, my passing test became a failing one. As you can see the session name originally was default. (This is not Drupal specific at all so it doesn't really belong on drupal SE.)

1条回答 默认 最新

相关推荐 更多相似问题