diff --git a/tests/Feature/UrlDiscoveryTest.php b/tests/Feature/UrlDiscoveryTest.php index 9d0782f..c616132 100644 --- a/tests/Feature/UrlDiscoveryTest.php +++ b/tests/Feature/UrlDiscoveryTest.php @@ -4,7 +4,6 @@ namespace Tests\Feature; -use App\Enums\PageStatusEnum; use App\Listeners\UrlDiscoveredListener; use App\Models\Page; use App\Models\PageLink; @@ -66,15 +65,10 @@ public function test_listener_creates_target_page_and_source_page_with_link(): v // Target page $targetPage = Page::where('url', 'https://example-blog.com/article')->first(); $this->assertNotNull($targetPage); - $this->assertSame(PageStatusEnum::Discovered, $targetPage->status); - $this->assertSame($instance->id, $targetPage->instance_id); // Source page $sourcePage = Page::where('url', 'https://mastodon.social/@alice/109876543210')->first(); $this->assertNotNull($sourcePage); - $this->assertSame(PageStatusEnum::Discovered, $sourcePage->status); - $this->assertSame($instance->id, $sourcePage->instance_id); - $this->assertNull($sourcePage->fetched_at); // Edge $link = PageLink::where('source_page_id', $sourcePage->id) @@ -115,8 +109,6 @@ public function test_listener_with_null_post_url_creates_only_target_page(): voi $targetPage = Page::where('url', 'https://example-blog.com/article')->first(); $this->assertNotNull($targetPage); - $this->assertSame(PageStatusEnum::Discovered, $targetPage->status); - $this->assertSame($instance->id, $targetPage->instance_id); } // --------------------------------------------------------------------------- diff --git a/tests/Feature/UrlSubmissionTest.php b/tests/Feature/UrlSubmissionTest.php index bc76e44..ff85245 100644 --- a/tests/Feature/UrlSubmissionTest.php +++ b/tests/Feature/UrlSubmissionTest.php @@ -41,8 +41,6 @@ public function test_valid_url_submission_creates_page_as_discovered(): void $this->assertDatabaseHas('pages', [ 'url' => 'https://example.com/interesting-post', - 'status' => PageStatusEnum::Discovered, - 'instance_id' => null, ]); }