Commit fd729f9e authored by Jonathan Sacksick's avatar Jonathan Sacksick Committed by Jonathan Sacksick
Browse files

Issue #3304503 by jsacksick: Address test failures and fix deprecation warnings due to the events.

parent 3aa51a39
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
    "homepage": "https://www.drupal.org/project/commerce_pricelist",
    "license": "GPL-2.0-or-later",
    "require": {
        "drupal/commerce": "^2.16 || ^3"
        "drupal/commerce": "^2.25 || ^3"
    },
    "minimum-stability": "dev"
}
+2 −2
Original line number Diff line number Diff line
@@ -2,15 +2,15 @@

namespace Drupal\commerce_pricelist\Event;

use Drupal\commerce\EventBase;
use Drupal\commerce_pricelist\Entity\PriceListInterface;
use Symfony\Component\EventDispatcher\Event;

/**
 * Defines the price list event.
 *
 * @see \Drupal\commerce_pricelist\Event\PriceListEvents
 */
class PriceListEvent extends Event {
class PriceListEvent extends EventBase {

  /**
   * The price list.
+2 −2
Original line number Diff line number Diff line
@@ -2,15 +2,15 @@

namespace Drupal\commerce_pricelist\Event;

use Drupal\commerce\EventBase;
use Drupal\commerce_pricelist\Entity\PriceListItemInterface;
use Symfony\Component\EventDispatcher\Event;

/**
 * Defines the price list item event.
 *
 * @see \Drupal\commerce_pricelist\Event\PriceListEvents
 */
class PriceListItemEvent extends Event {
class PriceListItemEvent extends EventBase {

  /**
   * The price list item.
+2 −2
Original line number Diff line number Diff line
@@ -471,11 +471,11 @@ class PriceListItemTest extends CommerceBrowserTestBase {
      'commerce_product' => $this->firstVariation->getProduct()->id(),
    ])->toString();
    $this->assertSession()->linkByHrefExists($first_variation_prices_uri);
    $this->clickLink('Edit');
    $this->drupalGet($this->firstVariation->toUrl('edit-form'));
    $this->assertSession()->linkExists('Prices');
    $this->assertSession()->linkByHrefExists($first_variation_prices_uri);
    $this->clickLink('Prices');
    $this->assertText('No prices yet.');
    $this->assertSession()->responseContains('No prices yet.');
    $this->createEntity('commerce_pricelist_item', [
      'type' => 'commerce_product_variation',
      'price_list_id' => $this->priceList->id(),