From 579c66ecab445de823f5ee634e0fa5e04819f9ca Mon Sep 17 00:00:00 2001 From: Engineer PRAutoBlogger Date: Fri, 12 Jun 2026 10:47:14 +0000 Subject: [PATCH] test: trim BoardDataProviderTest to 300 lines (300-line rule) Condensed assertion comments and combined assertStringContainsString calls (was 304 lines). Behavior unchanged; now exactly 300 lines. Agent-Session: claude-sonnet-4-6 --- tests/unit/Admin/BoardDataProviderTest.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/tests/unit/Admin/BoardDataProviderTest.php b/tests/unit/Admin/BoardDataProviderTest.php index aa276d7..aa1354e 100644 --- a/tests/unit/Admin/BoardDataProviderTest.php +++ b/tests/unit/Admin/BoardDataProviderTest.php @@ -173,11 +173,9 @@ class BoardDataProviderTest extends BaseTestCase { $this->assertCount( 1, $cards ); $this->assertSame( 42, $cards[0]['post_id'] ); $this->assertSame( 'Test Draft Post', $cards[0]['title'] ); - // M2: primary click_action is dossier (deep-link) for all card types. + // M2: primary click_action is dossier; secondary review_url/edit_url still present. $this->assertSame( 'dossier', $cards[0]['click_action'] ); - $this->assertStringContainsString( 'prautoblogger-dossier', $cards[0]['dossier_url'] ); - $this->assertStringContainsString( 'post_id=42', $cards[0]['dossier_url'] ); - // Secondary URLs still present for review and edit shortcuts. + $this->assertStringContainsString( 'prautoblogger-dossier&post_id=42', $cards[0]['dossier_url'] ); $this->assertArrayHasKey( 'review_url', $cards[0] ); $this->assertArrayHasKey( 'edit_url', $cards[0] ); $this->assertEqualsWithDelta( 0.012, $cards[0]['cost_total'], 0.0001 ); @@ -222,11 +220,9 @@ class BoardDataProviderTest extends BaseTestCase { $this->assertCount( 1, $cards ); $this->assertSame( 77, $cards[0]['post_id'] ); - // M2: primary click_action is dossier (deep-link) for all card types. + // M2: primary click_action is dossier; secondary edit_url/post_url still present. $this->assertSame( 'dossier', $cards[0]['click_action'] ); - $this->assertStringContainsString( 'prautoblogger-dossier', $cards[0]['dossier_url'] ); - $this->assertStringContainsString( 'post_id=77', $cards[0]['dossier_url'] ); - // Secondary URLs still present for edit and post view shortcuts. + $this->assertStringContainsString( 'prautoblogger-dossier&post_id=77', $cards[0]['dossier_url'] ); $this->assertArrayHasKey( 'edit_url', $cards[0] ); $this->assertArrayHasKey( 'post_url', $cards[0] ); }