Eccube\Tests\Repository\CustomerRepositoryTest::testGetNonActiveCustomerBySecretKey PHP Method

testGetNonActiveCustomerBySecretKey() public method

    public function testGetNonActiveCustomerBySecretKey()
    {
        $this->expected = $this->Customer->getSecretKey();
        $Status = $this->app['orm.em']->getRepository('Eccube\\Entity\\Master\\CustomerStatus')->find(CustomerStatus::NONACTIVE);
        $this->Customer->setStatus($Status);
        $this->app['orm.em']->flush();
        $Customer = $this->app['eccube.repository.customer']->getNonActiveCustomerBySecretKey($this->expected);
        $this->actual = $Customer->getSecretKey();
        $this->verify('secretは' . $this->expected . 'ではありません');
    }