DonationFactory.php
5 years ago
DonationFormFactory.php
5 years ago
DonorFactory.php
5 years ago
LogFactory.php
5 years ago
PageFactory.php
5 years ago
RevenueFactory.php
5 years ago
DonorFactory.php
28 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Give\TestData\Factories; |
| 4 | |
| 5 | use Give\TestData\Framework\Factory; |
| 6 | |
| 7 | /** |
| 8 | * Class DonorFactory |
| 9 | * @package Give\TestData\Factories |
| 10 | */ |
| 11 | class DonorFactory extends Factory { |
| 12 | |
| 13 | /** |
| 14 | * Donor definition |
| 15 | * |
| 16 | * @return array |
| 17 | * @since 1.0.0 |
| 18 | */ |
| 19 | public function definition() { |
| 20 | return [ |
| 21 | 'first_name' => $this->faker->firstName(), |
| 22 | 'last_name' => $this->faker->lastName(), |
| 23 | 'email' => $this->faker->safeEmail(), |
| 24 | 'date_created' => $this->faker->dateTimeThisYear()->format( 'Y-m-d H:i:s' ), |
| 25 | ]; |
| 26 | } |
| 27 | } |
| 28 |