From c5872c34c92151f2261bc4b53190e72923f0e563 Mon Sep 17 00:00:00 2001 From: peptiderepo Date: Wed, 17 Jun 2026 05:55:48 +0000 Subject: [PATCH] fix: extend PHPUnit\Framework\TestCase not WP_UnitTestCase in stub suite This repo uses stub-based PHPUnit, not WP integration tests. WP_UnitTestCase is not loaded by bootstrap.php. Agent-Session: fix-articles-500-20260617 --- tests/unit/ArticlesListTotalCastTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/unit/ArticlesListTotalCastTest.php b/tests/unit/ArticlesListTotalCastTest.php index 5b8d787..b671fd9 100644 --- a/tests/unit/ArticlesListTotalCastTest.php +++ b/tests/unit/ArticlesListTotalCastTest.php @@ -5,7 +5,9 @@ * @package Peptide_News */ -class ArticlesListTotalCastTest extends WP_UnitTestCase { +use PHPUnit\Framework\TestCase; + +class ArticlesListTotalCastTest extends TestCase { /** * Verify that $wpdb->get_var returning a numeric string does not * cause a TypeError in number_format() (PHP 8.3 strict typing).