Skip to content

Releases: basecom/FixturesPlugin

Release 3.0.0

17 Jun 15:04
c7ef644
Compare
Choose a tag to compare

Added

  • Added support for PHP 8.3
  • Added support for Shopware 6.6
  • Added --dry option to all fixture load commands
    • This option will prevent the fixtures from being executed but still prints all fixtures it would execute
  • Added new DatabaseUtils with a few helpful methods:
    • deleteEntities takes an entity name and criteria and deletes all entities which match the criteria
  • Added a small cache for all utilities. It prevents loading data twice within the same request / command execution
  • Added small helper function: $fixtureHelper->ensureNotEmpty which throws an exception if something is empty (using the PHP empty function)
  • Added command fixture:uuid which just prints a random UUID

Changed

  • Changed argument type on SalesChannelUtils::getTax() from int to float
  • Breaking By default no fixtures in the vendor directory are loaded. Added option --vendor to load them
  • Refactored FixtureTrait to not use command anymore but direct Fixture Loader
    • FixtureTrait::loadFixtures now takes in a FixtureOption parameter
    • FixtureTrait::runSpecificFixtures is an alias to run specific fixtures with optionally dependencies
    • FixtureTrait::runSingleFixture (before FixtureTrait::runSingleFixtureWithDependencies) with dependencies can now be configured as the second parameter
    • FixtureTrait::runFixtureGroup is a new function to execute whole fixture groups with optionally dependencies
  • Each fixture now has direct access to the FixtureHelper using $this->helper
    • Breaking If you have the helper (or any other helper) previously assigned to $this->helper it will either fail or override the FixturePlugin helper
  • Breaking Moved SalesChannelUtils::getLanguage() to LanguageAndLocaleUtils::getLanguage()
  • Breaking Moved SalesChannelUtils::getLocale() to LanguageAndLocaleUtils::getLocale()
  • Breaking Moved SalesChannelUtils::getCountry() to LanguageAndLocaleUtils::getCountry()
  • Breaking Moved SalesChannelUtils::getSnippetSet() to LanguageAndLocaleUtils::getSnippetSet()
  • Breaking Moved SalesChannelUtils::getCurrencyEuro() to CurrencyUtils::getCurrencyEuro()
  • Breaking Moved SalesChannelUtils::getTax19() to TaxUtils::getTax19()
  • Breaking Moved SalesChannelUtils::getTax() to TaxUtils::getTax()
  • Show time it took in seconds to run the fixture commands

Removed

  • Dropped support for PHP 8.1
  • Dropped support for Shopware 6.3 & 6.4
  • Breaking Removed FixtureBag
  • Breaking CategoryUtils
    • Removed method getFirst on CategoryUtils
    • Removed method getByName on CategoryUtils
  • Breaking Renamed CategoryUtils to SalutationUtils

2.4.0

15 Nov 14:01
6289329
Compare
Choose a tag to compare

Added

  • Added new helper to get locale by iso code

2.3.0

06 Sep 07:40
6eee188
Compare
Choose a tag to compare

Added

  • Added new helper method to load a TaxEntity by its value.
  • Added new helper methods to get headless and product comparison sales channels

2.2.1

10 Jul 12:42
8f833b2
Compare
Choose a tag to compare

Fixed

  • Restored compatibility for Shopware 6.4 by removing typehints for EntityRepository in util classes.

2.2.0

11 May 11:28
66be91e
Compare
Choose a tag to compare

Added

  • Added tests for PHP 8.2

Changed

  • Switched from EntityRepositoryInterface to EntityRepository in util classes to support Shopware 6.5

Removed

  • Dropped support for PHP 7.4 and 8.0

Release 2.1.0

08 Nov 08:35
6fe0b6d
Compare
Choose a tag to compare

Added

  • Added the option --with-dependencies / -w to the fixture:run:single command
    • This command recursively runs all fixtures that are required by the given fixture
  • Added new method to the fixture trait: runSingleFixtureWithDependencies()

2.0.0

04 Aug 12:26
238bdaa
Compare
Choose a tag to compare

Added

  • Added new helper method Category()->getByName()
  • Added new helper method Media()->upload()
  • Added examples in the repository. See the _examples folder

Changed

  • The helper methods in the FixtureHelper service are now split into multiple smaller units
    • Media now holds all media-related helpers
    • Category now holds all category-related helpers
    • SalesChannel now holds all sales-channel-related helpers
    • Customer now holds all customer-related helpers
    • Cms now holds all CMS-page-related helpers
    • PaymentMethod now holds all payment-method-related helpers
    • ShippingMethod now holds all shipping-method-related helpers
  • This is the first licensed version. See LICENSE file

Full Changelog: 1.8.0...2.0.0