Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-10686

Test suite does not detect changes in schema

    XMLWordPrintable

    Details

      Description

      1. Configure test_config.php for dbal testing.
      2. Run the test suite.
      3. Alter phpbb schema, e.g. add a table called phpbb_ext.
      4. Run the test suite.

      The test suite now fails with the following errors:

      41) phpbb_extension_manager_test::test_available
      PHPUnit_Extensions_Database_Operation_Exception: COMPOSITE[TRUNCATE] operation failed on query:
      TRUNCATE "phpbb_ext"
      using args: Array
      (
      )
      [SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "phpbb_ext" does not exist]

      I also get:

      40) phpbb_dbal_db_tools_test::test_create_index_against_index_exists
      SQL ERROR [ postgres ]<br /><br />ERROR: relation "prefix_table_name_seq" already exists []<br /><br />An sql error occurred while fetching this page. Please contact an administrator if this problem persists.

      Not sure how it manages to produce both of these errors in the same test run.

      The test suite remains broken until I clear out the database manually (did it by dropping and recreating).

        Attachments

          Activity

            People

            Assignee:
            nickvergessen Joas Schilling [X] (Inactive)
            Reporter:
            Oleg Oleg [X] (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: