Initial commit: PRAutoBlogger v0.1.0 with frontend posts widget

This commit is contained in:
Terence Ong
2026-04-10 23:33:42 +07:00
parent 68c6f67bcf
commit 88d674d679
65 changed files with 2178 additions and 1084 deletions

View File

@@ -2,7 +2,7 @@
declare(strict_types=1);
/**
* Unit tests for Autoblogger_Article_Idea value object.
* Unit tests for PRAutoBlogger_Article_Idea value object.
*
* Article ideas flow from the scorer to the generator to the editor —
* data must survive the full pipeline without mutation or loss.
@@ -22,7 +22,7 @@ class ArticleIdeaTest extends \PHPUnit\Framework\TestCase {
'target_keywords' => [ 'bpc-157 dosage', 'bpc-157 protocol' ],
];
$idea = new Autoblogger_Article_Idea( $data );
$idea = new PRAutoBlogger_Article_Idea( $data );
$this->assertSame( 'BPC-157 dosage protocols', $idea->get_topic() );
$this->assertSame( 'question', $idea->get_article_type() );
@@ -36,7 +36,7 @@ class ArticleIdeaTest extends \PHPUnit\Framework\TestCase {
}
public function test_optional_fields_default_to_empty(): void {
$idea = new Autoblogger_Article_Idea( [
$idea = new PRAutoBlogger_Article_Idea( [
'topic' => 'Test',
'article_type' => 'comparison',
'suggested_title' => 'Test Title',
@@ -51,7 +51,7 @@ class ArticleIdeaTest extends \PHPUnit\Framework\TestCase {
}
public function test_score_cast_from_string(): void {
$idea = new Autoblogger_Article_Idea( [
$idea = new PRAutoBlogger_Article_Idea( [
'topic' => 'Test',
'article_type' => 'question',
'suggested_title' => 'Test',