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

Installer database helper tests fail if sqlite3 is not present

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.2.0-a1
    • 3.2.0-dev
    • None
    • None

      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
      
      

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

              Created:
              Updated:
              Resolved: