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

testGetNonActiveCustomerBySecretKeyWithException() public method

    public function testGetNonActiveCustomerBySecretKeyWithException()
    {
        $secret = $this->Customer->getSecretKey();
        try {
            // CustomerStatus::ACTIVE なので取得できないはず
            $Customer = $this->app['eccube.repository.customer']->getNonActiveCustomerBySecretKey($secret);
            $this->fail();
        } catch (\Doctrine\ORM\NoResultException $e) {
            $this->expected = 'No result was found for query although at least one row was expected.';
            $this->actual = $e->getMessage();
        }
        $this->verify();
    }