From 68070fa5b8f582a5fd19fdd6a95839efcd98b347 Mon Sep 17 00:00:00 2001
From: William Hearn <sylus1984@gmail.com>
Date: Tue, 20 Sep 2016 19:45:32 -0400
Subject: [PATCH] Issue #2296437 by rlmumford, josebc, dsnopek, mglaman:
 Implement style plugin type

---
 tests/src/Unit/PanelsDisplayVariantTest.php | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git tests/src/Unit/PanelsDisplayVariantTest.php tests/src/Unit/PanelsDisplayVariantTest.php
index 8ef088e..d0a5f83 100644
--- tests/src/Unit/PanelsDisplayVariantTest.php
+++ tests/src/Unit/PanelsDisplayVariantTest.php
@@ -19,6 +19,8 @@ use Drupal\layout_plugin\Plugin\Layout\LayoutInterface;
 use Drupal\layout_plugin\Plugin\Layout\LayoutPluginManagerInterface;
 use Drupal\panels\Plugin\DisplayBuilder\DisplayBuilderManagerInterface;
 use Drupal\panels\Plugin\DisplayVariant\PanelsDisplayVariant;
+Use Drupal\panels\Plugin\PanelsStyle\PanelsStyleInterface;
+Use Drupal\panels\Plugin\PanelsStyle\PanelsStylePluginManagerInterface;
 use Drupal\Tests\UnitTestCase;
 use Prophecy\Argument;
 
@@ -94,12 +96,18 @@ class PanelsDisplayVariantTest extends UnitTestCase {
     $this->builderManager = $this->prophesize(DisplayBuilderManagerInterface::class);
     $this->layoutManager = $this->prophesize(LayoutPluginManagerInterface::class);
     $this->layout = $this->prophesize(LayoutInterface::class);
+    $this->styleManager = $this->prophesize(PanelsStylePluginManagerInterface::class);
+    $this->style = $this->prophesize(PanelsStyleInterface::class);
 
     $this->layoutManager
       ->createInstance(Argument::type('string'), Argument::type('array'))
       ->willReturn($this->layout->reveal());
 
-    $this->variant = new PanelsDisplayVariant([], '', [], $this->contextHandler->reveal(), $this->account->reveal(), $this->uuidGenerator->reveal(), $this->token->reveal(), $this->blockManager->reveal(), $this->conditionManager->reveal(), $this->moduleHandler->reveal(), $this->builderManager->reveal(), $this->layoutManager->reveal());
+    $this->styleManager
+      ->createInstance(Argument::type('string'), Argument::type('array'))
+      ->willReturn($this->style->reveal());
+
+    $this->variant = new PanelsDisplayVariant([], '', [], $this->contextHandler->reveal(), $this->account->reveal(), $this->uuidGenerator->reveal(), $this->token->reveal(), $this->blockManager->reveal(), $this->conditionManager->reveal(), $this->moduleHandler->reveal(), $this->builderManager->reveal(), $this->layoutManager->reveal(), $this->styleManager->reveal());
   }
 
   /**
-- 
2.5.4 (Apple Git-61)

