public function testUpWithException() { $Category = $this->app['eccube.repository.category']->findOneBy(array('name' => '親3')); $result = $this->app['eccube.repository.category']->up($Category); $this->assertFalse($result); }