public function testActivate()
{
$BaseInfo = $this->app['eccube.repository.base_info']->get();
$Customer = $this->createCustomer();
$secret_key = $Customer->getSecretKey();
$Status = $this->app['orm.em']->getRepository('Eccube\\Entity\\Master\\CustomerStatus')->find(CustomerStatus::NONACTIVE);
$Customer->setStatus($Status);
$this->app['orm.em']->flush();
$client = $this->createClient();
$crawler = $client->request('GET', $this->app['url_generator']->generate('entry_activate', array('secret_key' => $secret_key)));
$this->assertTrue($client->getResponse()->isSuccessful());
$Messages = $this->getMailCatcherMessages();
$Message = $this->getMailCatcherMessage($Messages[0]->id);
$this->expected = '[' . $BaseInfo->getShopName() . '] 会員登録が完了しました。';
$this->actual = $Message->subject;
$this->verify();
}