-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,8 @@ | |
* | ||
* > **Note** | ||
* > Any assets created during a test will be cleaned up and deleted after the test. | ||
* | ||
* @extends Factory<\craft\elements\Asset> | ||
*/ | ||
class Asset extends Element | ||
Check failure on line 30 in src/factories/Asset.php GitHub Actions / test (~5.3.0, 5.3)
Check failure on line 30 in src/factories/Asset.php GitHub Actions / test (~5.4.0, 5.4)
Check failure on line 30 in src/factories/Asset.php GitHub Actions / test (~5.1.0, 5)
Check failure on line 30 in src/factories/Asset.php GitHub Actions / test (~5.2.0, 5.2)
Check failure on line 30 in src/factories/Asset.php GitHub Actions / test (~5.0.0, 5)
Check failure on line 30 in src/factories/Asset.php GitHub Actions / test (~4.7.0, 4)
Check failure on line 30 in src/factories/Asset.php GitHub Actions / test (~4.5.0, 4)
Check failure on line 30 in src/factories/Asset.php GitHub Actions / test (~4.6.0, 4)
|
||
{ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
|
||
/** | ||
* @method self title(string $title) | ||
* @extends Factory<\craft\elements\Category> | ||
*/ | ||
class Category extends Element | ||
Check failure on line 9 in src/factories/Category.php GitHub Actions / test (~5.3.0, 5.3)
Check failure on line 9 in src/factories/Category.php GitHub Actions / test (~5.4.0, 5.4)
Check failure on line 9 in src/factories/Category.php GitHub Actions / test (~5.1.0, 5)
Check failure on line 9 in src/factories/Category.php GitHub Actions / test (~5.2.0, 5.2)
Check failure on line 9 in src/factories/Category.php GitHub Actions / test (~5.0.0, 5)
Check failure on line 9 in src/factories/Category.php GitHub Actions / test (~4.7.0, 4)
Check failure on line 9 in src/factories/Category.php GitHub Actions / test (~4.5.0, 4)
Check failure on line 9 in src/factories/Category.php GitHub Actions / test (~4.6.0, 4)
|
||
{ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
|
||
/** | ||
* @method self admin(bool $isAdmin) | ||
* @extends Factory<\craft\elements\User> | ||
*/ | ||
class User extends Element | ||
Check failure on line 9 in src/factories/User.php GitHub Actions / test (~5.3.0, 5.3)
Check failure on line 9 in src/factories/User.php GitHub Actions / test (~5.4.0, 5.4)
Check failure on line 9 in src/factories/User.php GitHub Actions / test (~5.1.0, 5)
Check failure on line 9 in src/factories/User.php GitHub Actions / test (~5.2.0, 5.2)
Check failure on line 9 in src/factories/User.php GitHub Actions / test (~5.0.0, 5)
Check failure on line 9 in src/factories/User.php GitHub Actions / test (~4.7.0, 4)
Check failure on line 9 in src/factories/User.php GitHub Actions / test (~4.5.0, 4)
Check failure on line 9 in src/factories/User.php GitHub Actions / test (~4.6.0, 4)
|
||
{ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
use markhuot\craftpest\factories\Entry; | ||
|
||
it('creates provisional drafts', function () { | ||
$entry = Entry::factory() | ||
->isProvisionalDraft() | ||
->create(); | ||
|
||
expect($entry)->isProvisionalDraft->toBeTrue(); | ||
}); |