function __construct() { parent::__construct(); $this->relationship = new PF_UnitTest_Factory_For_Relationship($this); $this->feed = new PF_UnitTest_Factory_For_Feed($this); $this->feed_item = new PF_UnitTest_Factory_For_Feed_Item($this); }
public function __construct() { parent::__construct(); //simple factories //setup any properties containing various test factory objects. EE_Test_Factories should extend the // WP_UnitTest_Factory_for_Thing abstract class ( @see wp tests/includes/EE_UnitTest_Factory.class.php). $this->event = new EE_UnitTest_Factory_For_Event($this); $this->venue = new EE_UnitTest_Factory_For_Venue($this); $this->datetime = new EE_UnitTest_Factory_For_Datetime($this); $this->datetime_chained = new EE_UnitTest_Factory_For_Datetime($this, true); $this->ticket = new EE_UnitTest_Factory_For_Ticket($this); $this->ticket_chained = new EE_UnitTest_Factory_For_Ticket($this, true); $this->price = new EE_UnitTest_Factory_For_Price($this); $this->price_chained = new EE_UnitTest_Factory_For_Price($this, true); $this->price_type = new EE_UnitTest_Factory_For_Price_Type($this); $this->price_type_chained = new EE_UnitTest_Factory_For_Price_Type($this, true); $this->registration = new EE_UnitTest_Factory_For_Registration($this); $this->registration_chained = new EE_UnitTest_Factory_For_Registration($this, true); $this->transaction = new EE_UnitTest_Factory_For_Transaction($this); $this->transaction_chained = new EE_UnitTest_Factory_For_Transaction($this, true); $this->attendee = new EE_UnitTest_Factory_For_Attendee($this); $this->attendee_chained = new EE_UnitTest_Factory_For_Attendee($this, true); $this->status = new EE_UnitTest_Factory_For_Status($this); $this->payment = new EE_UnitTest_Factory_For_Payment($this); //complex relationship factory //This is a unique factory (not extending WP_UnitTest_Factory_for_Thing) that builds EE objects from a given special formatted //setup array outlining object instantiation and relationships. $this->complex_factory = new EE_UnitTest_Factory_for_Specific_Builds($this); }
public function __construct() { parent::__construct(); $this->forum = new BBP_UnitTest_Factory_For_Forum($this); $this->topic = new BBP_UnitTest_Factory_For_Topic($this); $this->reply = new BBP_UnitTest_Factory_For_Reply($this); }
function __construct() { parent::__construct(); $this->user = new GV_UnitTest_Factory_For_User($this); $this->entry = new GF_UnitTest_Factory_For_Entry($this); $this->form = new GF_UnitTest_Factory_For_Form($this); $this->view = new GV_UnitTest_Factory_For_View($this); }
/** * constructor function * * This sets up some basic demo data */ public function __construct() { // construct the parent parent::__construct(); // generate sample lessons $this->lesson_ids = $this->generate_test_lessons(); $this->generate_test_courses(); // generate lesson questions foreach ($this->lesson_ids as $lesson_id) { $this->attach_lessons_questions(12, $lesson_id); } }
function __construct() { parent::__construct(); $this->user = new BP_UnitTest_Factory_For_User($this); $this->activity = new BP_UnitTest_Factory_For_Activity($this); $this->group = new BP_UnitTest_Factory_For_Group($this); $this->message = new BP_UnitTest_Factory_For_Message($this); $this->xprofile_group = new BP_UnitTest_Factory_For_XProfileGroup($this); $this->xprofile_field = new BP_UnitTest_Factory_For_XProfileField($this); $this->notification = new BP_UnitTest_Factory_For_Notification($this); $this->signup = new BP_UnitTest_Factory_For_Signup($this); }
public function __construct() { parent::__construct(); //setup any properties containing various test factory objects. EE_Test_Factories should extend the WP_UnitTest_Factory_for_Thing abstract class ( @see wp tests/includes/factory.php). $this->event = new EE_UnitTest_Factory_For_Event($this); $this->datetime = new EE_UnitTest_Factory_For_Datetime($this); $this->datetime_chained = new EE_UnitTest_Factory_For_Datetime($this, true); $this->ticket = new EE_UnitTest_Factory_For_Ticket($this); $this->ticket_chained = new EE_UnitTest_Factory_For_Ticket($this, true); $this->price = new EE_UnitTest_Factory_For_Price($this); $this->price_chained = new EE_UnitTest_Factory_For_Price($this, true); $this->price_type = new EE_UnitTest_Factory_For_Price_Type($this); $this->price_type_chained = new EE_UnitTest_Factory_For_Price_Type($this, true); $this->registration = new EE_UnitTest_Factory_For_Registration($this); $this->registration_chained = new EE_UnitTest_Factory_For_Registration($this, true); $this->transaction = new EE_UnitTest_Factory_For_Transaction($this); $this->transaction_chained = new EE_UnitTest_Factory_For_Transaction($this, true); $this->attendee = new EE_UnitTest_Factory_For_Attendee($this); $this->attendee_chained = new EE_UnitTest_Factory_For_Attendee($this, true); $this->status = new EE_UnitTest_Factory_For_Status($this); }
/** * Setup factories. */ public function __construct() { parent::__construct(); $this->webhook = new WC_Unit_Test_Factory_For_Webhook($this); $this->webhook_delivery = new WC_Unit_Test_Factory_For_Webhook_Delivery($this); }
public function __construct() { parent::__construct(); $this->event = new EO_UnitTest_Factory_For_Event($this); }
function __construct($post_type) { parent::__construct(); $this->custom_post = new WP_UnitTest_Factory_For_CustomPost($post_type, $this); }
/** * Setup factories */ public function __construct() { parent::__construct(); }
function __construct() { parent::__construct(); $this->relationship = new PF_UnitTest_Factory_For_Relationship($this); }
function __construct() { parent::__construct(); $this->gistpen = new WP_UnitTest_Factory_For_Gistpen($this); }