| 1 |
<?php |
| 2 |
|
| 3 |
namespace Give\TestData\Addons\RecurringDonations; |
| 4 |
|
| 5 |
use Give\TestData\Framework\Factory; |
| 6 |
|
| 7 |
/** |
| 8 |
* Class PageFactory |
| 9 |
* @package Give\TestData\RecurringDonations |
| 10 |
*/ |
| 11 |
class PageFactory extends Factory { |
| 12 |
/** |
| 13 |
* Donor definition |
| 14 |
* |
| 15 |
* @return array |
| 16 |
* @since 1.0.0 |
| 17 |
*/ |
| 18 |
public function definition() { |
| 19 |
return [ |
| 20 |
'post_title' => 'Recurring Donations Demonstration page', |
| 21 |
'post_content' => '[give_subscriptions]', |
| 22 |
'post_status' => 'publish', |
| 23 |
'post_author' => $this->randomAuthor(), |
| 24 |
'post_type' => 'page', |
| 25 |
]; |
| 26 |
} |
| 27 |
} |
| 28 |
|