Skip to content

Commit

Permalink
add unitTest_BcThemeConfigPlugin_services (#3387)
Browse files Browse the repository at this point in the history
Co-authored-by: thangnn <[email protected]>
  • Loading branch information
thangnnmd and thangnn authored Apr 29, 2024
1 parent d4745cf commit 066ee1a
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugins/bc-theme-config/src/BcThemeConfigPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class BcThemeConfigPlugin extends BcPlugin
* @param ContainerInterface $container
* @noTodo
* @checked
* @unitTest
*/
public function services(ContainerInterface $container): void
{
Expand Down
43 changes: 43 additions & 0 deletions plugins/bc-theme-config/tests/TestCase/BcThemeConfigPluginTest.php
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('このテストは、まだ実装されていません。');
}

}

0 comments on commit 066ee1a

Please sign in to comment.