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

Create Acceptance test for the Campaign Importer

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Released
    • Icon: Should have Should have
    • 2.36.0
    • None
    • 8
    • Campaigns, Testing
    • Sprint #139, Sprint #140

      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

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

              Created:
              Updated:
              Resolved: