diff --git a/tests/Feature/AdminPlatformOrderToolsPaidNoReceiptHintShouldUseGovernanceBlockTest.php b/tests/Feature/AdminPlatformOrderToolsPaidNoReceiptHintShouldUseGovernanceBlockTest.php new file mode 100644 index 0000000..2ff4882 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderToolsPaidNoReceiptHintShouldUseGovernanceBlockTest.php @@ -0,0 +1,32 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_platform_orders_tools_paid_no_receipt_hint_should_use_governance_block(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders?syncable_only=1&receipt_status=none'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertMatchesRegularExpression('/