Skip to content

Commit

Permalink
Add unitTest_BcShortCodeEventListener_implementedEvents (#3913)
Browse files Browse the repository at this point in the history
Co-authored-by: thangnn <[email protected]>
  • Loading branch information
thangnnmd and thangnn authored Oct 16, 2024
1 parent f2c261b commit 8112af9
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugins/baser-core/src/Event/BcShortCodeEventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class BcShortCodeEventListener implements EventListenerInterface
* @return array
* @checked
* @noTodo
* @unitTest
*/
public function implementedEvents(): array
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

namespace BaserCore\Test\TestCase\Event;

use BaserCore\Event\BcShortCodeEventListener;
use BaserCore\TestSuite\BcTestCase;

class BcShortCodeEventListenerTest extends BcTestCase
{
public function setUp(): void
{
parent::setUp();
$this->BcShortCodeEventListener = new BcShortCodeEventListener();
}

public function tearDown(): void
{
parent::tearDown();
}

/**
* test implementedEvents
*/
public function testImplementedEvents()
{
$this->assertTrue(is_array($this->BcShortCodeEventListener->implementedEvents()));
}

}

0 comments on commit 8112af9

Please sign in to comment.