-
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.
add unitTest_BcThemeConfigPlugin_services (#3387)
Co-authored-by: thangnn <[email protected]>
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 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
43 changes: 43 additions & 0 deletions
43
plugins/bc-theme-config/tests/TestCase/BcThemeConfigPluginTest.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,43 @@ | ||
<?php | ||
|
||
namespace BcThemeConfig\Test\TestCase; | ||
|
||
use BaserCore\TestSuite\BcTestCase; | ||
use BcThemeConfig\BcThemeConfigPlugin; | ||
use BcThemeConfig\Service\ThemeConfigsServiceInterface; | ||
use Cake\Core\Container; | ||
|
||
class BcThemeConfigPluginTest extends BcTestCase | ||
{ | ||
public function setUp(): void | ||
{ | ||
parent::setUp(); | ||
$this->BcThemeConfigPlugin = new BcThemeConfigPlugin(['name' => 'BcThemeConfig']); | ||
} | ||
|
||
public function tearDown(): void | ||
{ | ||
unset($this->BcThemeConfigPlugin); | ||
parent::tearDown(); | ||
} | ||
|
||
/** | ||
* test services | ||
*/ | ||
|
||
public function test_services() | ||
{ | ||
$container = new Container(); | ||
$this->BcThemeConfigPlugin->services($container); | ||
$this->assertTrue($container->has(ThemeConfigsServiceInterface::class)); | ||
} | ||
|
||
/** | ||
* test modifyDownloadDefaultData | ||
*/ | ||
public function test_modifyDownloadDefaultData() | ||
{ | ||
$this->markTestIncomplete('このテストは、まだ実装されていません。'); | ||
} | ||
|
||
} |