You are here

protected function RateWidgetTestBase::loadRateWidget in Rate 8.2

Load a rate widget easily.

Parameters

string $id: The id of the rate widget.

Return value

\Drupal\rate\Entity\RateWidget The rate widget Object.

1 call to RateWidgetTestBase::loadRateWidget()
RateWidgetCrudTest::testCrudEntityType in tests/src/Functional/RateWidgetCrudTest.php
Creating/reading/updating/deleting the rate widget entity and test it.

File

tests/src/Functional/RateWidgetTestBase.php, line 79

Class

RateWidgetTestBase
Holds set of tools for the rate widget testing.

Namespace

Drupal\Tests\rate\Functional

Code

protected function loadRateWidget($id) {
  return RateWidget::load($id);
}