46 lines
920 B
PHP
46 lines
920 B
PHP
|
<?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();
|
||
|
}
|
||
|
}
|