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

Notification functional tests fail using phpunit.xml.all

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.1.0-dev
    • Fix Version/s: 3.1.0-a1
    • Component/s: None
    • Labels:
      None

      Description

      Not sure what is causing this. Feel free to have a look.

      afischer@leonard:/var/www/projects/phpbb3 (develop) $ phpunit -c phpunit.xml.all
      PHPUnit 3.7.19 by Sebastian Bergmann.
       
      Configuration read from /var/www/projects/phpbb3/phpunit.xml.all
       
      .................................................I.....SSSS..   61 / 1939 (  3%)
      .....SSSS....................................................  122 / 1939 (  6%)
      .............................................................  183 / 1939 (  9%)
      .............................................................  244 / 1939 ( 12%)
      .............................................................  305 / 1939 ( 15%)
      .............................................................  366 / 1939 ( 18%)
      .I.II........................................................  427 / 1939 ( 22%)
      .............................................................  488 / 1939 ( 25%)
      .............................................................  549 / 1939 ( 28%)
      .............................................................  610 / 1939 ( 31%)
      .............................................................  671 / 1939 ( 34%)
      .....................................................F.F.....  732 / 1939 ( 37%)
      .............................................................  793 / 1939 ( 40%)
      .............................................................  854 / 1939 ( 44%)
      .............................................................  915 / 1939 ( 47%)
      .............................................................  976 / 1939 ( 50%)
      ............................................................. 1037 / 1939 ( 53%)
      ............................................................. 1098 / 1939 ( 56%)
      ............................................................. 1159 / 1939 ( 59%)
      ............................................................. 1220 / 1939 ( 62%)
      ............................................................. 1281 / 1939 ( 66%)
      ............................................................. 1342 / 1939 ( 69%)
      ............................................................. 1403 / 1939 ( 72%)
      ............................................................. 1464 / 1939 ( 75%)
      ............................................................. 1525 / 1939 ( 78%)
      ............................................................. 1586 / 1939 ( 81%)
      ............................................................. 1647 / 1939 ( 84%)
      ............................................................. 1708 / 1939 ( 88%)
      ............................................................. 1769 / 1939 ( 91%)
      ............................................................. 1830 / 1939 ( 94%)
      ............................................................. 1891 / 1939 ( 97%)
      ..............................................
       
      Time: 10:14, Memory: 93.00Mb
       
      There were 2 failures:
       
      1) phpbb_notification_test::test_get_notification_type_id
      Failed asserting that 7 matches expected 1.
       
      /var/www/projects/phpbb3/tests/notification/notification_test.php:105
      /usr/share/php/PHPUnit/TextUI/Command.php:176
      /usr/share/php/PHPUnit/TextUI/Command.php:129
       
      2) phpbb_notification_test::test_subscriptions
      Failed asserting that an array does not have the key 'post'.
       
      /var/www/projects/phpbb3/tests/notification/notification_test.php:153
      /usr/share/php/PHPUnit/TextUI/Command.php:176
      /usr/share/php/PHPUnit/TextUI/Command.php:129
       
      FAILURES!
      Tests: 1931, Assertions: 456455, Failures: 2, Incomplete: 4, Skipped: 8.
      

        Activity

        Hide
        EXreaction EXreaction [X] (Inactive) added a comment -

        How is this passing in some places but failing in others? Perhaps it is due to some PHP configuration differences? What version, etc?

        Show
        EXreaction EXreaction [X] (Inactive) added a comment - How is this passing in some places but failing in others? Perhaps it is due to some PHP configuration differences? What version, etc?
        Hide
        bantu Andreas Fischer added a comment -

        I don't think it's related to the PHP version.

        php -v
        PHP 5.4.9-4ubuntu2 (cli) (built: Mar 11 2013 16:09:26) 
        Copyright (c) 1997-2012 The PHP Group
        Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
            with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans

        mysql  Ver 14.14 Distrib 5.5.31, for debian-linux-gnu (x86_64) using readline 6.2

        Show
        bantu Andreas Fischer added a comment - I don't think it's related to the PHP version. php -v PHP 5.4.9-4ubuntu2 (cli) (built: Mar 11 2013 16:09:26) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans mysql Ver 14.14 Distrib 5.5.31, for debian-linux-gnu (x86_64) using readline 6.2
        Hide
        nickvergessen Joas Schilling added a comment -

        I think one of our slow tests adds data to that tables.
        However the tables are not emptied because they are not specified in the fixture file.
        I fixed that in my patch and its working now.

        Show
        nickvergessen Joas Schilling added a comment - I think one of our slow tests adds data to that tables. However the tables are not emptied because they are not specified in the fixture file. I fixed that in my patch and its working now.

          People

          • Assignee:
            nickvergessen Joas Schilling
            Reporter:
            bantu Andreas Fischer
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development