Eccube\Tests\Web\Admin\Customer\CustomerEditControllerTest::testNotShowProcessingOrder PHP Method

testNotShowProcessingOrder() public method

    public function testNotShowProcessingOrder()
    {
        $this->markTestSkipped('Problem with Doctrine');
        $id = $this->Customer->getId();
        //add Order pendding status for this customer
        $Order = $this->createOrder($this->Customer);
        $OrderStatus = $this->app['eccube.repository.order_status']->find($this->app['config']['order_processing']);
        $Order->setOrderStatus($OrderStatus);
        $this->Customer->addOrder($Order);
        $this->app['orm.em']->persist($Order);
        $this->app['orm.em']->persist($this->Customer);
        $this->app['orm.em']->flush();
        unset($this->Customer);
        $crawler = $this->client->request('GET', $this->app->path('admin_customer_edit', array('id' => $id)));
        $orderListing = $crawler->filter('#history_box')->text();
        $this->assertContains('データはありません', $orderListing);
    }