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

Installer database helper tests fail if sqlite3 is not present

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 3.2.0-dev
    • 3.2.0-a1
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: