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

Testing framework fails to install extensions because of outdated assertion

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.0.0-a1, 3.3.0-b1
    • 4.0.0-a1
    • Test Suite
    • None

      This line https://github.com/phpbb/phpbb/blob/master/tests/test_framework/phpbb_functional_test_case.php#L418 perform the checks

      $this->assertGreaterThan(0, $crawler->filter('.submit-buttons')->count());
      

      .submit-buttons fieldset does not exist in 3.3 confirmation page.

      Also here https://github.com/phpbb/phpbb/blob/master/tests/test_framework/phpbb_functional_test_case.php#L420 'Enable' button doesn't exist on comfirmation page too (not it is called 'Yes').

      Hence test fails with

      Failed asserting that 0 is greater than 0.
      /home/travis/build/phpBB3/tests/test_framework/phpbb_functional_test_case.php:418
      /home/travis/build/phpBB3/tests/test_framework/phpbb_functional_test_case.php:112

      and extension is not installed, so all other functional extension tests fail.

       

       

      P.S. It looks like phpbb_ui_test_case.php has the same issue.

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

              Created:
              Updated:
              Resolved: