Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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,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,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.
......
......@@ -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(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment