Commit fbaff3cf authored by lsolesen's avatar lsolesen

Automatic coding standard using phpcbf

parent d36f9103
......@@ -86,4 +86,5 @@ class CartAssignment implements CartAssignmentInterface {
$cart->save();
}
}
......@@ -5,4 +5,4 @@ namespace Drupal\commerce_cart\Exception;
/**
* Thrown when attempting to create a duplicate cart.
*/
class DuplicateCartException extends \RuntimeException implements ExceptionInterface { }
class DuplicateCartException extends \RuntimeException implements ExceptionInterface {}
......@@ -5,4 +5,4 @@ namespace Drupal\commerce_cart\Exception;
/**
* Exception interface for all exceptions thrown by the Cart module.
*/
interface ExceptionInterface { }
interface ExceptionInterface {}
......@@ -7,7 +7,7 @@ use Drupal\Component\Annotation\Plugin;
/**
* Defines the checkout flow plugin annotation object.
*
* Plugin namespace: Plugin\Commerce\CheckoutFlow
* Plugin namespace: Plugin\Commerce\CheckoutFlow.
*
* @Annotation
*/
......
......@@ -7,7 +7,7 @@ use Drupal\Component\Annotation\Plugin;
/**
* Defines the checkout pane plugin annotation object.
*
* Plugin namespace: Plugin\Commerce\CheckoutPane
* Plugin namespace: Plugin\Commerce\CheckoutPane.
*
* @Annotation
*/
......
......@@ -5,7 +5,6 @@ namespace Drupal\commerce_checkout\Form;
use Drupal\commerce_checkout\CheckoutFlowManager;
use Drupal\Core\Entity\BundleEntityFormBase;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Form\FormState;
use Drupal\Core\Form\FormStateInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
......
......@@ -385,7 +385,7 @@ abstract class CheckoutFlowWithPanesBase extends CheckoutFlowBase implements Che
$summary = $pane->buildConfigurationSummary();
if (!empty($summary)) {
$pane_row['configuration_summary'] = [
'#markup' => $summary,
'#markup' => $summary,
'#prefix' => '<div class="pane-configuration-summary">',
'#suffix' => '</div>',
'#wrapper_attributes' => [
......
......@@ -81,7 +81,7 @@ class BillingInformation extends CheckoutPaneBase implements CheckoutPaneInterfa
if ($billing_profile = $this->order->getBillingProfile()) {
$profile_view_builder = $this->entityTypeManager->getViewBuilder('profile');
$summary = $profile_view_builder->view($billing_profile, 'default');
$summary = $this->renderer->render($summary);
$summary = $this->renderer->render($summary);
}
return $summary;
}
......
......@@ -10,7 +10,7 @@ use Drupal\Core\Plugin\PluginFormInterface;
/**
* Defines the interface for checkout panes.
*
*
* Checkout panes are configurable forms embedded into the checkout flow form.
*/
interface CheckoutPaneInterface extends ConfigurablePluginInterface, PluginFormInterface, PluginInspectionInterface, DerivativeInspectionInterface {
......@@ -25,7 +25,7 @@ interface CheckoutPaneInterface extends ConfigurablePluginInterface, PluginFormI
/**
* Gets the pane label.
*
*
* @return string
* The pane label.
*/
......@@ -88,7 +88,7 @@ interface CheckoutPaneInterface extends ConfigurablePluginInterface, PluginFormI
* An HTML summary of the pane configuration.
*/
public function buildConfigurationSummary();
/**
* Determines whether the pane is visible.
*
......
......@@ -7,7 +7,6 @@ use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Link;
use Drupal\Core\Url;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
......
......@@ -143,7 +143,7 @@ class OrderForm extends ContentEntityForm {
return [
'#type' => 'item',
'#wrapper_attributes' => [
'class' => [Html::cleanCssIdentifier(strtolower($label)), 'container-inline']
'class' => [Html::cleanCssIdentifier(strtolower($label)), 'container-inline'],
],
'#markup' => '<h4 class="label inline">' . $label . '</h4> ' . $value,
];
......
......@@ -2,7 +2,6 @@
namespace Drupal\commerce_order\Form;
use Drupal\commerce_order\Form\CustomerFormTrait;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Routing\CurrentRouteMatch;
......
......@@ -73,7 +73,7 @@ class LineItemTypeTest extends OrderTestBase {
$line_item_type = $this->createEntity('commerce_line_item_type', $values);
$this->drupalGet('admin/commerce/config/line-item-types/' . $line_item_type->id() . '/delete');
$this->assertResponse(200, 'line item type delete form can be accessed at admin/commerce/config/line-item-types/'. $line_item_type->id() . '/delete.');
$this->assertResponse(200, 'line item type delete form can be accessed at admin/commerce/config/line-item-types/' . $line_item_type->id() . '/delete.');
$this->assertText(t('This action cannot be undone.'), 'The line item type deletion confirmation form is available');
$this->drupalPostForm(NULL, NULL, t('Delete'));
$line_item_type_exists = (bool) LineItemType::load($line_item_type->id());
......
......@@ -13,7 +13,7 @@ use Drupal\profile\Entity\Profile;
class OrderAdminTest extends OrderTestBase {
/**
* The profile to test against
* The profile to test against.
*
* @var \Drupal\profile\Entity\Profile
*/
......
......@@ -12,6 +12,7 @@ use Drupal\profile\Entity\Profile;
* Tests the Order entity.
*
* @coversDefaultClass \Drupal\commerce_order\Entity\Order
*
* @group commerce
*/
class OrderTest extends KernelTestBase {
......@@ -21,11 +22,13 @@ class OrderTest extends KernelTestBase {
*
* @var array
*/
public static $modules = ['system', 'field', 'options', 'user', 'entity',
'views', 'address', 'profile', 'state_machine',
'inline_entity_form', 'commerce', 'commerce_price',
'commerce_store', 'commerce_product',
'commerce_order'];
public static $modules = [
'system', 'field', 'options', 'user', 'entity',
'views', 'address', 'profile', 'state_machine',
'inline_entity_form', 'commerce', 'commerce_price',
'commerce_store', 'commerce_product',
'commerce_order',
];
/**
* {@inheritdoc}
......
......@@ -48,7 +48,7 @@ class NumberFormatRepository extends ExternalNumberFormatRepository implements N
/**
* {@inheritdoc}
*/
public function get($locale, $fallback_locale = null) {
public function get($locale, $fallback_locale = NULL) {
$locale = $this->resolveLocale($locale, $fallback_locale);
if (isset($this->numberFormats[$locale])) {
return $this->numberFormats[$locale];
......@@ -61,7 +61,7 @@ class NumberFormatRepository extends ExternalNumberFormatRepository implements N
}
else {
$filename = $this->definitionPath . $locale . '.json';
$definition = json_decode(file_get_contents($filename), true);
$definition = json_decode(file_get_contents($filename), TRUE);
$this->cache->set($cache_key, $definition, CacheBackendInterface::CACHE_PERMANENT, ['number_formats']);
}
// Instantiate and alter the number format.
......
......@@ -73,4 +73,5 @@ class CommerceProductRenderedAttribute extends Radios {
return $element;
}
}
......@@ -4,11 +4,9 @@ namespace Drupal\commerce_product\Entity;
use Drupal\Core\Entity\ContentEntityBase;
use Drupal\Core\Entity\EntityChangedTrait;
use Drupal\Core\Entity\EntityMalformedException;
use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Field\BaseFieldDefinition;
use Drupal\field\FieldConfigInterface;
use Drupal\user\UserInterface;
/**
......
......@@ -3,14 +3,9 @@
namespace Drupal\commerce_product\Form;
use Drupal\Core\Entity\BundleEntityFormBase;
use Drupal\Core\Entity\EntityFieldManagerInterface;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Field\BaseFieldDefinition;
use Drupal\Core\Form\FormStateInterface;
use Drupal\field\Entity\FieldConfig;
use Drupal\field\FieldConfigInterface;
use Drupal\language\Entity\ContentLanguageSettings;
use Symfony\Component\DependencyInjection\ContainerInterface;
class ProductAttributeForm extends BundleEntityFormBase {
......
......@@ -105,14 +105,14 @@ class ProductForm extends ContentEntityForm {
'changed' => [
'#type' => 'item',
'#wrapper_attributes' => [
'class' => ['entity-meta__last-saved', 'container-inline']
'class' => ['entity-meta__last-saved', 'container-inline'],
],
'#markup' => '<h4 class="label inline">' . $this->t('Last saved') . '</h4> ' . $last_saved,
],
'author' => [
'#type' => 'item',
'#wrapper_attributes' => [
'class' => ['author', 'container-inline']
'class' => ['author', 'container-inline'],
],
'#markup' => '<h4 class="label inline">' . $this->t('Author') . '</h4> ' . $product->getOwner()->getDisplayName(),
],
......@@ -245,7 +245,7 @@ class ProductForm extends ContentEntityForm {
// 1 | 1 » publish & Save and publish & Save as unpublished
// 1 | 0 » unpublish & Save and publish & Save as unpublished
// 0 | 1 » publish & Save and keep published & Save and unpublish
// 0 | 0 » unpublish & Save and keep unpublished & Save and publish
// 0 | 0 » unpublish & Save and keep unpublished & Save and publish.
if ($product->isNew()) {
$element['publish']['#value'] = $this->t('Save and publish');
$element['unpublish']['#value'] = $this->t('Save as unpublished');
......
......@@ -67,7 +67,8 @@ class AddToCartFormatter extends FormatterBase {
'#lazy_builder' => ['commerce_product.lazy_builders:addToCartForm', [
$items->getEntity()->id(),
$this->getSetting('combine'),
]],
],
],
'#create_placeholder' => TRUE,
];
}
......
......@@ -18,6 +18,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
* Plugin implementation of the 'commerce_product_variation_attributes' widget.
*
* The widget form depends on the 'product' being present in $form_state.
*
* @see \Drupal\commerce_product\Plugin\Field\FieldFormatter\AddToCartFormatter::viewElements().
*
* @FieldWidget(
......
......@@ -30,4 +30,5 @@ class ProductVariationSkuConstraintValidator extends ConstraintValidator {
}
}
}
}
......@@ -30,7 +30,6 @@ class ProductAttributeListBuilder extends ConfigEntityListBuilder {
return $operations;
}
/**
* {@inheritdoc}
*/
......
......@@ -17,7 +17,7 @@ class ProductVariationStorage extends CommerceContentEntityStorage implements Pr
*/
public function loadEnabled(ProductInterface $product) {
$ids = [];
foreach($product->variations as $variation) {
foreach ($product->variations as $variation) {
$ids[$variation->target_id] = $variation->target_id;
}
// Speed up loading by filtering out the IDs of disabled variations.
......
......@@ -27,7 +27,7 @@ class ProductVariationTypeListBuilder extends ConfigEntityListBuilder {
$row['name'] = $entity->label();
$row['type'] = $entity->id();
return $row + parent::buildRow($entity);
return $row + parent::buildRow($entity);
}
}
......@@ -33,7 +33,7 @@ class ProductAdminTest extends ProductTestBase {
'title[0][value]' => $title,
];
foreach ($store_ids as $store_id) {
$edit['stores[target_id][value]['. $store_id .']'] = $store_id;
$edit['stores[target_id][value][' . $store_id . ']'] = $store_id;
}
$variation_sku = $this->randomMachineName();
$variations_edit = [
......@@ -101,7 +101,7 @@ class ProductAdminTest extends ProductTestBase {
'title[0][value]' => $title,
];
foreach ($store_ids as $store_id) {
$edit['stores[target_id][value]['. $store_id .']'] = $store_id;
$edit['stores[target_id][value][' . $store_id . ']'] = $store_id;
}
$new_sku = strtolower($this->randomMachineName());
$new_price_amount = '1.11';
......
......@@ -3,7 +3,6 @@
namespace Drupal\commerce_product\Tests;
use Drupal\commerce_product\Entity\ProductAttribute;
use Drupal\commerce_product\Entity\ProductVariationType;
/**
* Create, edit, delete, and change product attributes.
......
......@@ -3,7 +3,6 @@
namespace Drupal\commerce_product\Tests;
use Drupal\commerce_product\Entity\ProductVariationType;
use Drupal\Component\Utility\Unicode;
/**
* Ensure the product variation type works correctly.
......@@ -80,7 +79,7 @@ class ProductVariationTypeTest extends ProductTestBase {
public function testProductVariationTypeDeletion() {
$variation_type = $this->createEntity('commerce_product_variation_type', [
'id' => 'foo',
'label' => 'foo'
'label' => 'foo',
]);
$variation = $this->createEntity('commerce_product_variation', [
'type' => $variation_type->id(),
......
......@@ -10,6 +10,7 @@ use Drupal\KernelTests\KernelTestBase;
* Tests the attribute field manager.
*
* @coversDefaultClass \Drupal\commerce_product\ProductAttributeFieldManager
*
* @group commerce
*/
class ProductAttributeFieldManagerTest extends KernelTestBase {
......@@ -27,8 +28,9 @@ class ProductAttributeFieldManagerTest extends KernelTestBase {
* @var array
*/
public static $modules = ['system', 'field', 'options', 'user', 'path', 'text',
'entity', 'views', 'address', 'inline_entity_form', 'commerce',
'commerce_price', 'commerce_store', 'commerce_product'];
'entity', 'views', 'address', 'inline_entity_form', 'commerce',
'commerce_price', 'commerce_store', 'commerce_product',
];
/**
* {@inheritdoc}
......
......@@ -27,7 +27,8 @@ class ProductVariationStorageTest extends EntityKernelTestBase {
*/
public static $modules = ['system', 'field', 'options', 'user', 'path',
'text', 'entity', 'filter', 'entity_test', 'commerce', 'commerce_price',
'commerce_store', 'commerce_product', 'views', 'address', 'inline_entity_form'];
'commerce_store', 'commerce_product', 'views', 'address', 'inline_entity_form',
];
/**
* {@inheritdoc}
......@@ -70,4 +71,5 @@ class ProductVariationStorageTest extends EntityKernelTestBase {
$this->assertEquals(2, count($variationsFiltered), '2 out of 3 variations are enabled');
$this->assertEquals(reset($variations)->getSku(), reset($variationsFiltered)->getSku(), 'The sort order of the variations remains the same');
}
}
......@@ -19,8 +19,8 @@ class ChainStoreResolverTest extends UnitTestCase {
protected $resolver;
/**
* {@inheritdoc}
*/
* {@inheritdoc}
*/
public function setUp() {
parent::setUp();
$this->resolver = new ChainStoreResolver();
......@@ -29,7 +29,7 @@ class ChainStoreResolverTest extends UnitTestCase {
/**
* ::covers addResolver
* ::covers getResolvers
* ::covers resolve
* ::covers resolve.
*/
public function testResolver() {
$mock_builder = $this->getMockBuilder('Drupal\commerce_store\Resolver\StoreResolverInterface')
......@@ -52,7 +52,7 @@ class ChainStoreResolverTest extends UnitTestCase {
$this->resolver->addResolver($second_resolver);
$this->resolver->addResolver($third_resolver);
$resolvers = $this->resolver->getResolvers();
$resolvers = $this->resolver->getResolvers();
$this->assertEquals([$first_resolver, $second_resolver, $third_resolver], $resolvers);
$result = $this->resolver->resolve();
......
......@@ -189,7 +189,7 @@ class TaxRate extends ConfigEntityBase implements TaxRateInterface {
* {@inheritdoc}
*/
public function getAmount(\DateTime $date) {
return null;
return NULL;
}
/**
......@@ -242,7 +242,7 @@ class TaxRate extends ConfigEntityBase implements TaxRateInterface {
}
return $parameters;
}
}
/**
* {@inheritdoc}
......
......@@ -2,7 +2,6 @@
namespace Drupal\commerce_tax\Form;
use Drupal\commerce_tax\Entity\TaxTypeInterface;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
......
......@@ -59,7 +59,7 @@ class TaxRateListBuilder extends ConfigEntityListBuilder {
$operations['rate_amounts'] = [
'title' => $this->t('View rate amounts'),
'url' => Url::fromRoute('entity.commerce_tax_rate_amount.collection', [
'commerce_tax_rate' => $entity->id()
'commerce_tax_rate' => $entity->id(),
]),
];
......
......@@ -25,90 +25,15 @@
<rule ref="Drupal"/>
<!-- Can be fixed automatically -->
<rule ref="Squiz.Strings.ConcatenationSpacing.PaddingFound">
<severity>0</severity>
</rule>
<rule ref="Drupal.Array.Array.CommaLastItem">
<severity>0</severity>
</rule>
<rule ref="Drupal.WhiteSpace.ScopeIndent.IncorrectExact">
<severity>0</severity>
</rule>
<rule ref="Drupal.Array.Array.ArrayClosingIndentation">
<severity>0</severity>
</rule>
<rule ref="Drupal.Array.Array.ArrayIndentation">
<severity>0</severity>
</rule>
<rule ref="Drupal.Commenting.DocComment.ShortFullStop">
<severity>0</severity>
</rule>
<rule ref="Drupal.Commenting.DocComment.TagGroupSpacing">
<severity>0</severity>
</rule>
<rule ref="Drupal.Commenting.ClassComment.Missing">
<severity>0</severity>
</rule>
<rule ref="Drupal.Classes.UnusedUseStatement.UnusedUse">
<severity>0</severity>
</rule>
<rule ref="Drupal.WhiteSpace.ScopeClosingBrace.Indent">
<severity>0</severity>
</rule>
<rule ref="Generic.PHP.UpperCaseConstant.Found">
<severity>0</severity>
</rule>
<rule ref="Drupal.WhiteSpace.OperatorSpacing.SpacingAfter">
<severity>0</severity>
</rule>
<rule ref="Squiz.Commenting.DocCommentAlignment.SpaceBeforeStar">
<severity>0</severity>
</rule>
<rule ref="Drupal.Classes.ClassDeclaration.CloseBraceAfterBody">
<severity>0</severity>
</rule>
<rule ref="Squiz.WhiteSpace.FunctionSpacing.After">
<severity>0</severity>
</rule>
<rule ref="Squiz.Arrays.ArrayDeclaration.CloseBraceNewLine">
<severity>0</severity>
</rule>
<rule ref="Drupal.WhiteSpace.Comma.TooManySpaces">
<severity>0</severity>
</rule>
<rule ref="Drupal.ControlStructures.ControlSignature.SpaceAfterKeyword">
<severity>0</severity>
</rule>
<rule ref="Drupal.Commenting.DocComment.SpacingBeforeTags">
<severity>0</severity>
</rule>
<rule ref="Drupal.Commenting.InlineComment.InvalidEndChar">
<severity>0</severity>
</rule>
<rule ref="Drupal.Commenting.FunctionComment.Missing">
<severity>0</severity>
</rule>
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EndLine">
<severity>0</severity>
</rule>
<rule ref="Drupal.Commenting.DocComment.LongFullStop">
<severity>0</severity>
</rule>
<rule ref="Drupal.Commenting.FileComment.NamespaceNoFileDoc">
<severity>0</severity>
</rule>
<rule ref="Drupal.WhiteSpace.CloseBracketSpacing.ClosingWhitespace">
<severity>0</severity>
</rule>
<rule ref="Drupal.WhiteSpace.OpenBracketSpacing.OpeningWhitespace">
<severity>0</severity>
</rule>
<rule ref="Drupal.Commenting.FileComment.NamespaceNoFileDoc">
<severity>0</severity>
</rule>
<rule ref="Drupal.WhiteSpace.OpenBracketSpacing.OpeningWhitespace">
<severity>0</severity>
</rule>
<!-- Needs manual work to be fixed -->
<rule ref="Squiz.Scope.MethodScope.Missing">
<severity>0</severity>
......
......@@ -30,6 +30,7 @@ use Drupal\Core\Render\Element\FormElement;
* '#target_type' => 'commerce_store',
* '#multiple' => TRUE,
* ];
*
* @end
*
* @FormElement("commerce_entity_select")
......
......@@ -8,7 +8,7 @@ namespace Drupal\commerce;
final class Locale {
/**
* The locale
* The locale.
*
* @var string
*/
......
......@@ -44,7 +44,7 @@ class EntitySelectWidget extends WidgetBase {
'#min' => 2,
'#required' => TRUE,
];
$element['autocomplete_size'] = [
$element['autocomplete_size'] = [
'#type' => 'number',
'#title' => $this->t('Autocomplete size'),
'#description' => $this->t('Size of the input field in characters.'),
......
......@@ -80,7 +80,7 @@ abstract class CommerceTestBase extends WebTestBase {
$status = $entity->save();
$this->assertEqual($status, SAVED_NEW, new FormattableMarkup('Created %label entity %type.', [
'%label' => $entity->getEntityType()->getLabel(),
'%type' => $entity->id()
'%type' => $entity->id(),
]));
// The newly saved entity isn't identical to a loaded one, and would fail
// comparisons.
......
......@@ -90,7 +90,7 @@ class EntitySelectWidgetTest extends CommerceTestBase {
$this->createStores(1);
$store_id = $this->stores[0]->id();
$this->drupalGet($form_url);
$this->assertFieldByXpath('//input[@type="hidden" and @name="stores[target_id][value]" and @value="' . $store_id .'"]', NULL, 'Stores field is displayed as a hidden element.');
$this->assertFieldByXpath('//input[@type="hidden" and @name="stores[target_id][value]" and @value="' . $store_id . '"]', NULL, 'Stores field is displayed as a hidden element.');
// Create another store. The widget should now be a set of checkboxes.
$this->createStores(1);
......@@ -102,8 +102,8 @@ class EntitySelectWidgetTest extends CommerceTestBase {
$this->assertNoFieldChecked('edit-stores-target-id-value-1');
$this->assertNoFieldChecked('edit-stores-target-id-value-2');
// Check store 1.
$edit['stores[target_id][value][' . $store_ids[0] .']'] = $store_ids[0];
$edit['stores[target_id][value][' . $store_ids[1] .']'] = FALSE;
$edit['stores[target_id][value][' . $store_ids[0] . ']'] = $store_ids[0];
$edit['stores[target_id][value][' . $store_ids[1] . ']'] = FALSE;
$this->drupalPostForm(NULL, $edit, t('Save and keep published'));
$this->assertResponse(200);
\Drupal::entityTypeManager()->getStorage('commerce_product')->resetCache();
......
......@@ -27,7 +27,7 @@ class AvailabilityManagerTest extends UnitTestCase {
/**
* ::covers addChecker
* ::covers getCheckers
* ::covers check
* ::covers check.
*/
public function testCheck() {
$mock_builder = $this->getMockBuilder('Drupal\commerce\AvailabilityCheckerInterface')
......
......@@ -25,14 +25,14 @@ class ChainCountryResolverTest extends UnitTestCase {
* {@inheritdoc}
*/
public function setUp() {
parent::setUp();
$this->chainCountryResolver = new ChainCountryResolver();
parent::setUp();
$this->chainCountryResolver = new ChainCountryResolver();
}
/**
* ::covers addResolver
* ::covers getResolvers
* ::covers resolve
* ::covers resolve.
*/
public function testResolver() {
$mock_builder = $this->getMockBuilder('Drupal\commerce\Resolver\CountryResolverInterface')
......@@ -55,7 +55,7 @@ class ChainCountryResolverTest extends UnitTestCase {
$this->chainCountryResolver->addResolver($second_resolver);
$this->chainCountryResolver->addResolver($third_resolver);
$resolvers = $this->chainCountryResolver->getResolvers();
$resolvers = $this->chainCountryResolver->getResolvers();
$this->assertEquals([$first_resolver, $second_resolver, $third_resolver], $resolvers);
$result = $this->chainCountryResolver->resolve();
......@@ -63,4 +63,3 @@ class ChainCountryResolverTest extends UnitTestCase {
}
}
......@@ -32,7 +32,7 @@ class ChainLocaleResolverTest extends UnitTestCase {
/**
* ::covers addResolver
* ::covers getResolvers
* ::covers resolve
* ::covers resolve.
*/
public function testResolver() {
$mock_builder = $this->getMockBuilder('Drupal\commerce\Resolver\LocaleResolverInterface')
......
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