Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function displayList()

// Push the model into the view (as default)
$view->setModel($model, true);
$view->set('component_name', $this->input->get('component_name'));
$view->component_name = $this->input->get('component_name');

$view->document = $this->app->getDocument();
$view->displayList();
Expand Down
3 changes: 0 additions & 3 deletions libraries/src/MVC/Model/BaseModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

use Joomla\CMS\Language\Text;
use Joomla\CMS\Object\LegacyErrorHandlingTrait;
use Joomla\CMS\Object\LegacyPropertyManagementTrait;
use Joomla\Filesystem\Path;

// phpcs:disable PSR1.Files.SideEffects
Expand All @@ -29,8 +28,6 @@ abstract class BaseModel implements ModelInterface, StatefulModelInterface
use StateBehaviorTrait;
use LegacyModelLoaderTrait;
use LegacyErrorHandlingTrait;
use LegacyPropertyManagementTrait;


/**
* The model (base) name
Expand Down
5 changes: 0 additions & 5 deletions libraries/src/MVC/View/AbstractView.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use Joomla\CMS\Language\LanguageAwareTrait;
use Joomla\CMS\MVC\Model\BaseDatabaseModel;
use Joomla\CMS\Object\LegacyErrorHandlingTrait;
use Joomla\CMS\Object\LegacyPropertyManagementTrait;
use Joomla\Event\DispatcherAwareInterface;
use Joomla\Event\DispatcherAwareTrait;

Expand All @@ -36,10 +35,6 @@ abstract class AbstractView implements ViewInterface, DispatcherAwareInterface,
use DispatcherAwareTrait;
use LanguageAwareTrait;
use LegacyErrorHandlingTrait;
use LegacyPropertyManagementTrait {
get as private legacyGet;
}


/**
* The active document object
Expand Down
19 changes: 0 additions & 19 deletions tests/Unit/Libraries/Cms/MVC/View/AbstractViewTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,25 +129,6 @@ public function display($tpl = null)
$this->assertEquals($model, $view->getModel());
}

/**
* @testdox can get data
*
* @return void
*
* @since 4.2.0
*/
public function testGetData()
{
$view = new class () extends AbstractView {
public function display($tpl = null)
{
}
};
$view->set('unit', 'test');

$this->assertEquals('test', $view->get('unit'));
}

/**
* @testdox can get data
*
Expand Down
Loading