Skip to content

Commit

Permalink
Fix static tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmalevanec committed Jan 16, 2019
1 parent b7434d7 commit 5103b8e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
9 changes: 9 additions & 0 deletions app/code/Magento/Backend/Block/Template/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*
* @api
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
* @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
* @since 100.0.2
*/
class Context extends \Magento\Framework\View\Element\Template\Context
Expand Down Expand Up @@ -173,6 +174,8 @@ public function getAuthorization()
}

/**
* Get backend session instance.
*
* @return \Magento\Backend\Model\Session
*/
public function getBackendSession()
Expand All @@ -181,6 +184,8 @@ public function getBackendSession()
}

/**
* Get math random instance.
*
* @return \Magento\Framework\Math\Random
*/
public function getMathRandom()
Expand All @@ -189,6 +194,8 @@ public function getMathRandom()
}

/**
* Get form key instance.
*
* @return \Magento\Framework\Data\Form\FormKey
*/
public function getFormKey()
Expand All @@ -197,6 +204,8 @@ public function getFormKey()
}

/**
* Get name builder instance.
*
* @return \Magento\Framework\Code\NameBuilder
*/
public function getNameBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ abstract class AbstractRenderer extends \Magento\Backend\Block\AbstractBlock imp
protected $_column;

/**
* Set column for renderer.
*
* @param Column $column
* @return $this
*/
Expand All @@ -38,6 +40,8 @@ public function setColumn($column)
}

/**
* Returns row associated with the renderer.
*
* @return Column
*/
public function getColumn()
Expand Down Expand Up @@ -75,6 +79,8 @@ public function renderExport(DataObject $row)
}

/**
* Returns value of the row.
*
* @param DataObject $row
* @return mixed
*/
Expand All @@ -92,6 +98,8 @@ protected function _getValue(DataObject $row)
}

/**
* Get pre-rendered input element.
*
* @param DataObject $row
* @return string
*/
Expand All @@ -108,6 +116,8 @@ public function _getInputValueElement(DataObject $row)
}

/**
* Get input value by row.
*
* @param DataObject $row
* @return mixed
*/
Expand All @@ -117,6 +127,8 @@ protected function _getInputValue(DataObject $row)
}

/**
* Renders header of the column,
*
* @return string
*/
public function renderHeader()
Expand Down Expand Up @@ -148,6 +160,8 @@ public function renderHeader()
}

/**
* Render HTML properties.
*
* @return string
*/
public function renderProperty()
Expand All @@ -172,6 +186,8 @@ public function renderProperty()
}

/**
* Returns HTML for CSS.
*
* @return string
*/
public function renderCss()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
*/
namespace Magento\Backend\Controller\Adminhtml\Dashboard;

class ProductsViewed extends AjaxBlock
use Magento\Framework\App\Action\HttpGetActionInterface;

/**
* Get most viewed products controller.
*/
class ProductsViewed extends AjaxBlock implements HttpGetActionInterface
{
/**
* Gets most viewed products list
Expand Down

0 comments on commit 5103b8e

Please sign in to comment.