/** * Instantiate the controller. * * @param Input $input The input object. * @param AbstractApplication $app The application object. * * @since 1.0 */ public function __construct(Input $input = null, AbstractApplication $app = null) { parent::__construct($input, $app); $this->container = Container::getInstance(); }
/** * Tests the setInput method. * * @return void * * @covers Joomla\Controller\AbstractController::setInput * @since 1.0 */ public function testSetInput() { $input = new InputCookie(); $this->instance->setInput($input); $this->assertSame($input, $this->instance->getInput()); }