PageFactory.php
4 years ago
PageSeedCommand.php
4 years ago
RecurringDonationFactory.php
4 years ago
RecurringDonationRepository.php
4 years ago
RecurringDonations.php
4 years ago
ServiceProvider.php
4 years ago
PageFactory.php
30 lines
| 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 | /** |
| 14 | * Donor definition |
| 15 | * |
| 16 | * @since 1.0.0 |
| 17 | * @return array |
| 18 | */ |
| 19 | public function definition() |
| 20 | { |
| 21 | return [ |
| 22 | 'post_title' => 'Recurring Donations Demonstration page', |
| 23 | 'post_content' => '[give_subscriptions]', |
| 24 | 'post_status' => 'publish', |
| 25 | 'post_author' => $this->randomAuthor(), |
| 26 | 'post_type' => 'page', |
| 27 | ]; |
| 28 | } |
| 29 | } |
| 30 |