Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-10483

Test suite does not run with MySQL strict mode

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.0.10-RC2
    • 3.0.10-RC1
    • Test Suite
    • None

      When running the tests in MySQL strict mode, the test suite fails with 62 errors among these lines:

      [code]
      1) phpbb_dbal_select_test::test_return_on_error_select with data set #0 ('phpbb_users', 'username_clean = \'bertie\'', array(array('bertie')))
      PHPUnit_Extensions_Database_Operation_Exception: COMPOSITE[INSERT] operation failed on query:
      INSERT INTO `phpbb_users`
      (`user_id`, `username_clean`)
      VALUES
      (?, ?)
      using args: Array
      (
      [0] => 1
      [1] => barfoo
      )
      [SQLSTATE[HY000]: General error: 1364 Field 'user_permissions' doesn't have a default value]
      [code]

      The solution to this problem appears to be defining the missing fields in the dbunit fixtures.

            igorw Igor Wiedler [X] (Inactive)
            igorw Igor Wiedler [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: