-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #195 from alleyinteractive/0.12.x
0.12.x
- Loading branch information
Showing
17 changed files
with
194 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
name: Node Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- '*.*.x' | ||
pull_request: | ||
|
||
jobs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
/** | ||
* Category Factory | ||
* | ||
* @package Mantle | ||
*/ | ||
|
||
// phpcs:disable Squiz.Commenting.FunctionComment.MissingParamComment | ||
|
||
namespace App\Database\Factory; | ||
|
||
use Mantle\Support\Str; | ||
use App\Models\Category; | ||
|
||
/** | ||
* Category Factory | ||
* | ||
* @extends \Mantle\Database\Factory\Term_Factory<\App\Models\Category> | ||
*/ | ||
class Category_Factory extends \Mantle\Database\Factory\Term_Factory { | ||
/** | ||
* Model to use when creating objects. | ||
* | ||
* @var class-string | ||
*/ | ||
protected string $model = Category::class; | ||
|
||
/** | ||
* Define the model's default state. | ||
* | ||
* @return array | ||
*/ | ||
public function definition(): array { | ||
return [ | ||
'name' => $this->faker->sentence, | ||
'description' => $this->faker->paragraph, | ||
'taxonomy' => 'category', | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
/** | ||
* Post Factory | ||
* | ||
* @package Mantle | ||
*/ | ||
|
||
// phpcs:disable Squiz.Commenting.FunctionComment.MissingParamComment | ||
|
||
namespace App\Database\Factory; | ||
|
||
use Mantle\Support\Str; | ||
use App\Models\Post; | ||
|
||
/** | ||
* Post Factory | ||
* | ||
* @extends \Mantle\Database\Factory\Post_Factory<\App\Models\Post> | ||
*/ | ||
class Post_Factory extends \Mantle\Database\Factory\Post_Factory { | ||
/** | ||
* Model to use when creating objects. | ||
* | ||
* @var class-string | ||
*/ | ||
protected string $model = Post::class; | ||
|
||
/** | ||
* Define the model's default state. | ||
* | ||
* @return array | ||
*/ | ||
public function definition(): array { | ||
return [ | ||
'post_title' => $this->faker->sentence, | ||
'post_content' => $this->faker->paragraph, | ||
'post_status' => 'publish', | ||
'post_type' => 'post', | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
/** | ||
* Tag Factory | ||
* | ||
* @package Mantle | ||
*/ | ||
|
||
// phpcs:disable Squiz.Commenting.FunctionComment.MissingParamComment | ||
|
||
namespace App\Database\Factory; | ||
|
||
use Mantle\Support\Str; | ||
use App\Models\Tag; | ||
|
||
/** | ||
* Tag Factory | ||
* | ||
* @extends \Mantle\Database\Factory\Term_Factory<\App\Models\Tag> | ||
*/ | ||
class Tag_Factory extends \Mantle\Database\Factory\Term_Factory { | ||
/** | ||
* Model to use when creating objects. | ||
* | ||
* @var class-string | ||
*/ | ||
protected string $model = Tag::class; | ||
|
||
/** | ||
* Define the model's default state. | ||
* | ||
* @return array | ||
*/ | ||
public function definition(): array { | ||
return [ | ||
'name' => $this->faker->sentence, | ||
'description' => $this->faker->paragraph, | ||
'taxonomy' => 'tag', | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.