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

Prune shadow topics tests fail due to wrong forum_last_post_id

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.1.0-b3
    • 3.1.0-dev, 3.1.0-b2
    • Test Suite
    • None

      The prune shadow topics functional tests fail due to this:

      phpbb_functional_prune_shadow_topic_test::test_create_post
      Forum 6 does not match expected after replying
      Failed asserting that two arrays are equal.
      --- Expected
      +++ Actual
      @@ @@
       Array (
      -    'forum_posts_approved' => 2
      -    'forum_posts_unapproved' => 0
      -    'forum_posts_softdeleted' => 0
      -    'forum_topics_approved' => 1
      -    'forum_topics_unapproved' => 0
      -    'forum_topics_softdeleted' => 0
      -    'forum_last_post_id' => 28
      +    'forum_posts_approved' => '2'
      +    'forum_posts_unapproved' => '0'
      +    'forum_posts_softdeleted' => '0'
      +    'forum_topics_approved' => '1'
      +    'forum_topics_unapproved' => '0'
      +    'forum_topics_softdeleted' => '0'
      +    'forum_last_post_id' => '29'
       )

      The forum_last_post_id seems to be incorrectly retrieved from the template.

            nickvergessen Joas Schilling
            Marc Marc
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: