-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev-5' of github.com:baserproject/basercms into dev-5
- Loading branch information
Showing
18 changed files
with
237 additions
and
210 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
/** | ||
* baserCMS : Based Website Development Project <https://basercms.net> | ||
* Copyright (c) NPO baser foundation <https://baserfoundation.org/> | ||
* | ||
* @copyright Copyright (c) NPO baser foundation | ||
* @link https://basercms.net baserCMS Project | ||
* @since 5.0.0 | ||
* @license https://basercms.net/license/index.html MIT License | ||
*/ | ||
|
||
namespace BcFavorite\Test\Factory; | ||
|
||
use CakephpFixtureFactories\Factory\BaseFactory as CakephpBaseFactory; | ||
use Faker\Generator; | ||
|
||
/** | ||
* BlogCategoryFactory | ||
*/ | ||
class FavoriteFactory extends CakephpBaseFactory | ||
{ | ||
|
||
/** | ||
* Defines the Table Registry used to generate entities with | ||
* | ||
* @return string | ||
*/ | ||
protected function getRootTableRegistryName(): string | ||
{ | ||
return 'BcFavorite.Favorites'; | ||
} | ||
|
||
/** | ||
* Defines the factory's default values. This is useful for | ||
* not nullable fields. You may use methods of the present factory here too. | ||
* | ||
* @return void | ||
*/ | ||
protected function setDefaultTemplate(): void | ||
{ | ||
$this->setDefaultData(function (Generator $faker) { | ||
return [ | ||
'created' => $faker->date(), | ||
'modified' => $faker->date() | ||
]; | ||
}); | ||
} | ||
|
||
} |
Oops, something went wrong.