eZ\Publish\Core\Repository\Tests\Service\Mock\RepositoryTest::testCommitThrowsRuntimeException PHP Метод

testCommitThrowsRuntimeException() публичный Метод

Test for the commit() method.
    public function testCommitThrowsRuntimeException()
    {
        $mockedRepository = $this->getRepository();
        $persistenceHandlerMock = $this->getPersistenceMock();
        $persistenceHandlerMock->expects($this->once())->method('commit')->will($this->throwException(new \Exception()));
        $mockedRepository->commit();
    }