/** * @testdox Test that setHeadData returns an instance of $this */ public function testEnsureSetHeadDataReturnsThisObject() { // This method calls JText::script() which has a dependency to JHtml::_('behavior.core') and requires the application be loaded JFactory::$application = $this->getMockCmsApp(); $this->assertSame($this->object, $this->object->setHeadData($this->testHeadData)); }