From efd89d1fde531dcb9c584be095364d07e5fb4e1f Mon Sep 17 00:00:00 2001 From: Tim Carr Date: Wed, 30 Oct 2024 14:56:10 +0800 Subject: [PATCH 1/2] =?UTF-8?q?Updated=20tests=20to=20assert=20Broadcast?= =?UTF-8?q?=E2=80=99s=20SEO=20settings=20description=20is=20stored=20as=20?= =?UTF-8?q?the=20Post=20excerpt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/wpunit/BroadcastsImportTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/wpunit/BroadcastsImportTest.php b/tests/wpunit/BroadcastsImportTest.php index f3ae9026..073ce9ed 100644 --- a/tests/wpunit/BroadcastsImportTest.php +++ b/tests/wpunit/BroadcastsImportTest.php @@ -325,6 +325,9 @@ private function assertImportValid($post) // Confirm published date matches the Broadcast. $date = date('Y-m-d', strtotime($_ENV['CONVERTKIT_API_BROADCAST_FIRST_DATE'])) . ' ' . date('H:i:s', strtotime($_ENV['CONVERTKIT_API_BROADCAST_FIRST_DATE'])); $this->assertEquals($date, $post->post_date_gmt); + + // Confirm SEO description is stored as the Post's excerpt. + $this->assertEquals($_ENV['CONVERTKIT_API_BROADCAST_FIRST_DESCRIPTION'], $post->post_excerpt); } /** From 1fefeb7e907968a0623555559866b36c7ede7ff0 Mon Sep 17 00:00:00 2001 From: Tim Carr Date: Wed, 30 Oct 2024 14:58:39 +0800 Subject: [PATCH 2/2] Updated .env files --- .env.dist.testing | 1 + .env.example | 1 + 2 files changed, 2 insertions(+) diff --git a/.env.dist.testing b/.env.dist.testing index a034bbb3..0910c7a0 100644 --- a/.env.dist.testing +++ b/.env.dist.testing @@ -56,6 +56,7 @@ CONVERTKIT_API_BROADCAST_ID=3175837 CONVERTKIT_API_BROADCAST_FIRST_URL="https://cheerful-architect-3237.ck.page/posts/html-template-test" CONVERTKIT_API_BROADCAST_FIRST_TITLE="HTML Template Test" CONVERTKIT_API_BROADCAST_FIRST_DATE="2023-08-02T16:34:51.000Z" +CONVERTKIT_API_BROADCAST_FIRST_DESCRIPTION="This is a sample meta description." CONVERTKIT_API_BROADCAST_SECOND_URL="https://cheerful-architect-3237.ck.page/posts/paid-subscriber-broadcast" CONVERTKIT_API_BROADCAST_SECOND_TITLE="Paid Subscriber Broadcast" CONVERTKIT_API_BROADCAST_THIRD_URL="https://cheerful-architect-3237.ck.page/posts/test-subject" diff --git a/.env.example b/.env.example index afe9f350..5bb9a326 100644 --- a/.env.example +++ b/.env.example @@ -62,6 +62,7 @@ CONVERTKIT_API_BROADCAST_ID=3175837 CONVERTKIT_API_BROADCAST_FIRST_URL="https://cheerful-architect-3237.ck.page/posts/html-template-test" CONVERTKIT_API_BROADCAST_FIRST_TITLE="HTML Template Test" CONVERTKIT_API_BROADCAST_FIRST_DATE="2023-08-02T16:34:51.000Z" +CONVERTKIT_API_BROADCAST_FIRST_DESCRIPTION="This is a sample meta description." CONVERTKIT_API_BROADCAST_SECOND_URL="https://cheerful-architect-3237.ck.page/posts/paid-subscriber-broadcast" CONVERTKIT_API_BROADCAST_SECOND_TITLE="Paid Subscriber Broadcast" CONVERTKIT_API_BROADCAST_THIRD_URL="https://cheerful-architect-3237.ck.page/posts/test-subject"