← Back to team overview

mahara-contributors team mailing list archive

[Bug 1400199] Re: Fixtures for creating pages in Behat

 

Insteads of implementing the function for creating 3 types of page. I will implement only one "page"
with 2 extra columns
 - ownertype = 'user', 'group', or 'institution'
 - ownername

The sample steps are:

    And the following "pages" exist:
      | name | description| ownertype | ownername |
      | Page 01 | This is the page 01 | user | userD |
      | Page 02 | This is the page 02 | user | userD |
      | Site Page 01 | This is the page 01 of the site | institution | mahara |
      | Institution Page 01 | This is the page 01 of the Institution One| institution | instone |
      | Group Page 01 | This is the page 01 of the group 01 | group | group 01 |

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1400199

Title:
  Fixtures for creating pages in Behat

Status in Mahara ePortfolio:
  In Progress

Bug description:
  Hi Sonn,

  This is the information you need to create fixtures for creating pages
  and assosiating them to groups or institution or to people.

  For heaps of people associate with a group.
   *And the follow "group_pages" exist:
   | Group | Page title | Page description |
   | Fancy group | Pretty title | This is an amazing page |
   | Behat group | Behat people | This is a descrption of all the behat people. |

  Creates pages associated with the owner.
   *And the following "user_groups" exist:
   | Owner | Page title | Page description |
   | aaronb | Pretty title | This is an amazing page |
   | aaronw | Behat people | This is a description of all the behat people. |

  Creates pages associated with the institution. However, if the institution is Mahara then it's a site page. This is a default setting if you are not part of an institution. Also if you leave the institution space blank it will adhere to this rule also.
   *And the following "institution_pages" exist:
   | Institution | Page title | Page description |
   | Freemantle Institution | Pretty title | This is an amazing page. |

  Let me know if you need any more information.

  Cheers,
  Jinelle

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1400199/+subscriptions


References