Commit 7552e03c authored by aspilicious's avatar aspilicious Committed by tim.plunkett

addtional fixes for the test plugins

parent ec4c2322
...@@ -26,7 +26,7 @@ public static function getInfo() { ...@@ -26,7 +26,7 @@ public static function getInfo() {
public function setUp() { public function setUp() {
parent::setUp(); parent::setUp();
config('views.settings')->set('views_localization_plugin', 'localization_test')->save(); config('views.settings')->set('views_localization_plugin', 'test_localization')->save();
// Reset the plugin data. // Reset the plugin data.
views_fetch_plugin_data(NULL, NULL, TRUE); views_fetch_plugin_data(NULL, NULL, TRUE);
$this->strings = array('Master1', 'Apply1', 'Sort By1', 'Asc1', 'Desc1', 'more1', 'Reset1', 'Offset1', 'Master1', 'title1', 'Items per page1', 'fieldlabel1', 'filterlabel1'); $this->strings = array('Master1', 'Apply1', 'Sort By1', 'Asc1', 'Desc1', 'more1', 'Reset1', 'Offset1', 'Master1', 'title1', 'Items per page1', 'fieldlabel1', 'filterlabel1');
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
namespace Drupal\views_test\Plugin\views\access; namespace Drupal\views_test\Plugin\views\access;
use Drupal\Core\Annotation\Plugin;
use Drupal\views\Plugin\views\access\AccessPluginBase; use Drupal\views\Plugin\views\access\AccessPluginBase;
/** /**
...@@ -14,8 +15,8 @@ ...@@ -14,8 +15,8 @@
* *
* @Plugin( * @Plugin(
* plugin_id = "test_dynamic", * plugin_id = "test_dynamic",
* title = @Translation("Dynamic test access plugin."), * title = "Dynamic test access plugin.",
* help = @Translation("Provides a dynamic test access plugin.") * help = "Provides a dynamic test access plugin."
* ) * )
*/ */
class DynamicTest extends AccessPluginBase { class DynamicTest extends AccessPluginBase {
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
namespace Drupal\views_test\Plugin\views\access; namespace Drupal\views_test\Plugin\views\access;
use Drupal\Core\Annotation\Plugin;
use Drupal\views\Plugin\views\access\AccessPluginBase; use Drupal\views\Plugin\views\access\AccessPluginBase;
/** /**
...@@ -14,8 +15,8 @@ ...@@ -14,8 +15,8 @@
* *
* @Plugin( * @Plugin(
* plugin_id = "test_static", * plugin_id = "test_static",
* title = @Translation("Static test access plugin"), * title = "Static test access plugin",
* help = @Translation("Provides a static test access plugin.") * help = "Provides a static test access plugin."
* ) * )
*/ */
class StaticTest extends AccessPluginBase { class StaticTest extends AccessPluginBase {
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
namespace Drupal\views_test\Plugin\views\localization; namespace Drupal\views_test\Plugin\views\localization;
use Drupal\Core\Annotation\Plugin;
use Drupal\views\Plugin\views\localization\LocalizationPluginBase; use Drupal\views\Plugin\views\localization\LocalizationPluginBase;
/** /**
...@@ -14,8 +15,8 @@ ...@@ -14,8 +15,8 @@
* *
* @Plugin( * @Plugin(
* plugin_id = "test_localization", * plugin_id = "test_localization",
* title = @Translation("Test."), * title = "Test.",
* help = @Translation("This is a test description."), * help = "This is a test description.",
* no_uid = TRUE * no_uid = TRUE
* ) * )
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment