Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2758

[GH-826] Prepare to return StatementMock for nullifying DB write during testing

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      This issue is created automatically through a Github pull request on behalf of intellix:

      Url: https://github.com/doctrine/doctrine2/pull/826

      Message:

      I'm attempting to mock the EntityManager so when I run unit tests on my Services, I don't want flush() to actually write to the DB.
      I've narrowed down my issue to this file and this line not returning a StatementMock as a normal DriverConnection would return a Statement.

        Activity

        Hide
        Doctrine Bot added a comment -

        A related Github Pull-Request [GH-826] was closed:
        https://github.com/doctrine/doctrine2/pull/826

        Show
        Doctrine Bot added a comment - A related Github Pull-Request [GH-826] was closed: https://github.com/doctrine/doctrine2/pull/826

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Doctrine Bot
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: