Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-5193

Create Acceptance test for the Campaign Importer

    XporterXMLWordPrintable

    Details

    • Type: Task
    • Status: CLOSED
    • Priority: Should have
    • Resolution: Released
    • Affects Version/s: None
    • Fix Version/s: 2.36.0
    • Labels:
      None
    • Story Points:
      8
    • Sprint:
      Sprint #139, Sprint #140
    • Section:
      Campaigns, Testing
    • Track:
      Development
    • Repositories:
      planet4-base-fork

      Description

      Currently there is no test for campaign import. Set up a test with the most obvious assertions. No need to have this test cover everything, probably better to merge the initial test first and then iterate on it.

      Also this was flagged as having high complexity, so reducing that would also reduce the risk. This could be done in this ticket or separately.

      https://4867-131222745-gh.circle-artifacts.com/0/planet4-docker-compose/artifacts/codeception/coverage/themes/planet4-master-theme/classes/class-p4-campaign-importer.php.html#12

      Tasks

      • Create dummy XML files to be used for this test and add to repo
      • Scope of this test is just to test importer is reading the uploaded XML and creating a campaign from it
      • The features and specifics of the campaign will be developed increasingly
      • Create follow up ticket to add testing coverage and set a % goal
      • Base tests on: https://github.com/greenpeace/planet4-base-fork/pull/77

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              sdeshmuk Sagar Deshmukh
              Reporter:
              pvincent Pieter Vincent
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: