Skip to content

Commit

Permalink
InstallationsController::beforeFilter() ユニットテスト
Browse files Browse the repository at this point in the history
  • Loading branch information
dovanhung committed Dec 19, 2024
1 parent 64602c7 commit a8d9e93
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class InstallationsController extends BcAdminAppController
* @return void
* @checked
* @noTodo
* @unitTest
*/
public function beforeFilter(EventInterface $event)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
namespace BcInstaller\Test\TestCase\Controller\Admin;
use BaserCore\TestSuite\BcTestCase;
use BcInstaller\Controller\Admin\InstallationsController;
use Cake\Event\Event;

/**
* Class InstallationsControllerTest
Expand Down Expand Up @@ -45,7 +46,10 @@ public function tearDown(): void
*/
public function testBeforeFilter()
{
$this->markTestIncomplete('このテストは、まだ実装されていません。');
$this->InstallationsController = new InstallationsController($this->getRequest());
$event = new Event('Controller.beforeFilter', $this->InstallationsController);
$this->InstallationsController->beforeFilter($event);
$this->assertEquals(300, ini_get("max_execution_time"));
}

/**
Expand Down

0 comments on commit a8d9e93

Please sign in to comment.