X Tutup
Skip to content

Fix: Add missing 'code' field to swatch attribute option tests#252

Open
prismaticoder wants to merge 1 commit intounopim:masterfrom
prismaticoder:fix-swatch-attribute-option-tests
Open

Fix: Add missing 'code' field to swatch attribute option tests#252
prismaticoder wants to merge 1 commit intounopim:masterfrom
prismaticoder:fix-swatch-attribute-option-tests

Conversation

@prismaticoder
Copy link
Contributor

Issue Reference

N/A - Bug fix discovered during test execution

Description

While running tests, the swatch attribute option tests in Catalog/AttributeTest consistently fail due to missing required code field. The attribute_options table has a non-nullable code column, and the tests were not providing this field when creating new options.

Changes:

  • Added code field to color swatch attribute option test
  • Added code field to image swatch attribute option test

How To Test This?

Run the affected tests:

./vendor/bin/pest packages/Webkul/Admin/tests/Feature/Catalog/AttributeTest.php --filter="swatch_value for select"

Documentation

  • My pull request requires an update on the documentation repository.

Branch Selection

  • Target Branch: master

Pint

N/A - Test file changes only

Tailwind Reordering

N/A - No Tailwind changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

X Tutup