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

Installer database helper tests fail if sqlite3 is not present

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2.0-dev
    • Fix Version/s: 3.2.0-a1
    • Component/s: None
    • Labels:
      None

      Description

      If sqlite3 is not available, the tests will cause errors. This does for example happen on Windows.

      There were 6 errors:
       
      1) phpbb_installer_database_helper_test::test_validate_table_prefix with data set #0 (true, 'phpbb_')
      phpbb\install\exception\invalid_dbms_exception:
       
      C:\Users\Marc\Documents\Entwicklung\phpbb\phpBB\phpbb\install\helper\database.php:294
      C:\Users\Marc\Documents\Entwicklung\phpbb\tests\installer\database_helper_test.php:59
       
      2) phpbb_installer_database_helper_test::test_validate_table_prefix with data set #1 (true, 'phpbb')
      phpbb\install\exception\invalid_dbms_exception:
       
      C:\Users\Marc\Documents\Entwicklung\phpbb\phpBB\phpbb\install\helper\database.php:294
      C:\Users\Marc\Documents\Entwicklung\phpbb\tests\installer\database_helper_test.php:59
       
      3) phpbb_installer_database_helper_test::test_validate_table_prefix with data set #2 (array(array('INST_ERR_DB_INVALID_PREFIX')), '1hpbb_')
      phpbb\install\exception\invalid_dbms_exception:
       
      C:\Users\Marc\Documents\Entwicklung\phpbb\phpBB\phpbb\install\helper\database.php:294
      C:\Users\Marc\Documents\Entwicklung\phpbb\tests\installer\database_helper_test.php:59
       
      4) phpbb_installer_database_helper_test::test_validate_table_prefix with data set #3 (array(array('INST_ERR_DB_INVALID_PREFIX')), '?hpbb_')
      phpbb\install\exception\invalid_dbms_exception:
       
      C:\Users\Marc\Documents\Entwicklung\phpbb\phpBB\phpbb\install\helper\database.php:294
      C:\Users\Marc\Documents\Entwicklung\phpbb\tests\installer\database_helper_test.php:59
       
      5) phpbb_installer_database_helper_test::test_validate_table_prefix with data set #4 (array(array(array('INST_ERR_PREFIX_TOO_LONG', 200))), 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
      AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')
      phpbb\install\exception\invalid_dbms_exception:
       
      C:\Users\Marc\Documents\Entwicklung\phpbb\phpBB\phpbb\install\helper\database.php:294
      C:\Users\Marc\Documents\Entwicklung\phpbb\tests\installer\database_helper_test.php:59
       
      6) phpbb_installer_database_helper_test::test_validate_table_prefix with data set #5 (array(array('INST_ERR_DB_INVALID_PREFIX'), array(array('INST_ERR_PREFIX_TOO_LONG', 200))), '_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
      AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')
      phpbb\install\exception\invalid_dbms_exception:
       
      C:\Users\Marc\Documents\Entwicklung\phpbb\phpBB\phpbb\install\helper\database.php:294
      C:\Users\Marc\Documents\Entwicklung\phpbb\tests\installer\database_helper_test.php:59
      
      

        Attachments

          Activity

            People

            • Assignee:
              CHItA CHItA
              Reporter:
              Marc Marc
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: