-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Đỗ Văn Hùng <HungDV2022> Co-authored-by: ryuring <egashira@catchup.co.jp>
- Loading branch information
1 parent
dbeb08c
commit b892a1d
Showing
3 changed files
with
53 additions
and
2 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
34 changes: 34 additions & 0 deletions
34
plugins/bc-theme-config/tests/Scenario/ThemeConfigsScenario.php
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,34 @@ | ||
<?php | ||
/** | ||
* 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 BcThemeConfig\Test\Scenario; | ||
|
||
use BcThemeConfig\Test\Factory\ThemeConfigFactory; | ||
use CakephpFixtureFactories\Scenario\FixtureScenarioInterface; | ||
|
||
/** | ||
* 利用する場合は、テーブルの初期化に次のフィクスチャの定義が必要 | ||
* - plugin.BcThemeConfig.Factory/ThemeConfigs | ||
*/ | ||
class ThemeConfigsScenario implements FixtureScenarioInterface | ||
{ | ||
|
||
/** | ||
* load | ||
*/ | ||
public function load(...$args) | ||
{ | ||
ThemeConfigFactory::make(['name' => 'color_main', 'value' => '001800'])->persist(); | ||
ThemeConfigFactory::make(['name' => 'color_sub', 'value' => '001800'])->persist(); | ||
ThemeConfigFactory::make(['name' => 'color_link', 'value' => '2B7BB9'])->persist(); | ||
ThemeConfigFactory::make(['name' => 'color_hover', 'value' => '2B7BB9'])->persist(); | ||
} | ||
} |
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