<?php
namespace Shim\Test\TestCase\Controller\Component;

use Cake\Controller\ComponentRegistry;
use Cake\Controller\Controller;
use Cake\Network\Request;
use Shim\Controller\Component\Component;
use Shim\TestSuite\TestCase;

/**
 * SessionComponentTest class
 */
class ComponentTest extends TestCase {

	/**
	 * @var \Cake\Controller\Controller
	 */
	public $Controller;

	/**
	 * setUp method
	 *
	 * @return void
	 */
	public function setUp() {
		$this->Controller = new Controller(new Request());
		$this->ComponentRegistry = new ComponentRegistry($this->Controller);
	}

	/**
	 * testBeforeFilter method
	 *
	 * @return void
	 */
	public function testBeforeFilter() {
		$Component = new Component($this->ComponentRegistry);

		$this->assertInstanceOf(Controller::class, $Component->Controller);
	}

}
