kkarpieszuk / wc-price-history

Track Woocommerce Products prices history and display the lowest price in the last 30 days. This plugin allows your WC shop to be compliant with European Commision Directive 98/6/EC Article 6a which specyfies price reduction annoucment policy.
MIT License
6 stars 4 forks source link

Add Unit Tests for ProductDuplicate and ProductUpdates #73

Closed sweep-ai[bot] closed 5 months ago

sweep-ai[bot] commented 10 months ago

PR Feedback (click)

The following files were added:

The README.md file was also updated to include a section about the unit tests.

Summary of Changes

sweep-ai[bot] commented 10 months ago

Rollback Files For Sweep

sweep-ai[bot] commented 10 months ago

Sandbox Executions

trunk fmt tests/ProductDuplicateTest.php || exit 0 1/2 ✓
Found no applicable linters for the requested path
trunk check --fix --print-failures tests/ProductDuplicateTest.php 2/2 ✓
Checked 1 file
✔ No issues

trunk fmt tests/ProductUpdatesTest.php || exit 0 1/2 ✓
Found no applicable linters for the requested path
trunk check --fix --print-failures tests/ProductUpdatesTest.php 2/2 ✓
Checked 1 file
✔ No issues

trunk fmt README.md || exit 0 1/2 ✓
 ✔ Formatted README.md
Re-checking autofixed files...

Checked 1 file
✔ No issues
trunk check --fix --print-failures README.md 2/2 ❌ (`1`)
  ISSUES  
README.md:68:0
 17:0  low  Fenced code blocks should have a language specified  markdownlint/MD040
 42:0  low  Fenced code blocks should have a language specified  markdownlint/MD040
 48:0  low  Fenced code blocks should have a language specified  markdownlint/MD040
 54:0  low  Fenced code blocks should have a language specified  markdownlint/MD040
 68:0  low  Fenced code blocks should have a language specified  markdownlint/MD040
Checked 1 file
4 existing issues
✖ 1 new issue

trunk fmt README.md || exit 0 1/2 ✓
 ✔ Formatted README.md
Re-checking autofixed files...

Checked 1 file
✔ No issues
trunk check --fix --print-failures README.md 2/2 ✓
  ISSUES  
README.md:41:0
 41:0  low  Fenced code blocks should have a language specified  markdownlint/MD040
 47:0  low  Fenced code blocks should have a language specified  markdownlint/MD040
 53:0  low  Fenced code blocks should have a language specified  markdownlint/MD040
Checked 1 file
3 existing issues

trunk fmt README.md || exit 0 1/2 ✓
Checked 1 file
✔ No issues
trunk check --fix --print-failures README.md 2/2 ✓
  ISSUES  
README.md:41:0
 41:0  low  Fenced code blocks should have a language specified  markdownlint/MD040
 47:0  low  Fenced code blocks should have a language specified  markdownlint/MD040
 53:0  low  Fenced code blocks should have a language specified  markdownlint/MD040
Checked 1 file
3 existing issues