CakeContactUs/tests/TestCase/Controller/Component/ContactUsComponentTest.php

46 lines
908 B
PHP
Raw Normal View History

2025-01-10 07:47:18 +00:00
<?php
declare(strict_types=1);
namespace CakeContactUs\Test\TestCase\Controller\Component;
use Cake\Controller\ComponentRegistry;
use Cake\TestSuite\TestCase;
use CakeContactUs\Controller\Component\ContactUsComponent;
/**
* CakeContactUs\Controller\Component\ContactUsComponent Test Case
*/
class ContactUsComponentTest extends TestCase
{
/**
* Test subject
*
* @var \CakeContactUs\Controller\Component\ContactUsComponent
*/
protected $ContactUs;
/**
* setUp method
*
* @return void
*/
protected function setUp(): void
{
parent::setUp();
$registry = new ComponentRegistry();
$this->ContactUs = new ContactUsComponent($registry);
}
/**
* tearDown method
*
* @return void
*/
protected function tearDown(): void
{
unset($this->ContactUs);
parent::tearDown();
}
}