Eccube\Tests\Plugin\Web\EntryControllerTest::testActivate PHP Method

testActivate() public method

public testActivate ( )
    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());
        $hookpoins = array(EccubeEvents::FRONT_ENTRY_ACTIVATE_COMPLETE, EccubeEvents::MAIL_CUSTOMER_COMPLETE);
        $this->verifyOutputString($hookpoins);
    }