CakeAccounting/tests/TestCase/Controller/Component/AccountingComponentTest.php

46 lines
920 B
PHP
Raw Normal View History

2025-08-09 21:07:39 +00:00
<?php
declare(strict_types=1);
namespace CakeAccounting\Test\TestCase\Controller\Component;
use Cake\Controller\ComponentRegistry;
use Cake\TestSuite\TestCase;
use CakeAccounting\Controller\Component\AccountingComponent;
/**
* CakeAccounting\Controller\Component\AccountingComponent Test Case
*/
class AccountingComponentTest extends TestCase
{
/**
* Test subject
*
* @var \CakeAccounting\Controller\Component\AccountingComponent
*/
protected $Accounting;
/**
* setUp method
*
* @return void
*/
protected function setUp(): void
{
parent::setUp();
$registry = new ComponentRegistry();
$this->Accounting = new AccountingComponent($registry);
}
/**
* tearDown method
*
* @return void
*/
protected function tearDown(): void
{
unset($this->Accounting);
parent::tearDown();
}
}