Skip to content

Commit

Permalink
BcThemeConfigHelper::mainImage() ユニットテスト
Browse files Browse the repository at this point in the history
  • Loading branch information
dovanhung committed Nov 29, 2024
1 parent 93e8855 commit 2894f8f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ public function mainImage($options = [])
* @return void
* @checked
* @noTodo
* @unitTest
*/
public function logo($options = [])
{
Expand All @@ -121,6 +122,7 @@ public function logo($options = [])
* @return string $tag テーマ画像のHTMLタグ
* @checked
* @noTodo
* @unitTest
*/
public function getThemeImage($name, $options = [])
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ public function tearDown(): void
*/
public function testLogo()
{
$this->markTestIncomplete('このテストは、まだ実装されていません。');
$this->expectOutputRegex('/<img src="\/theme\/nada-icons\/img\/logo.png" alt="baserCMS"\/>/');
$this->BcBaser->logo();
ob_start();
$this->BcThemeConfigHelper->logo();
$result = ob_get_clean();
$this->assertEquals('<img src="/bc_front/img/logo.png" alt="">', $result);
}

/**
Expand Down

0 comments on commit 2894f8f

Please sign in to comment.