Skip to content

Commit

Permalink
Fix failing tests in EntryQueryBuilderTest (#275)
Browse files Browse the repository at this point in the history
* Fix failing tests in `EntryQueryBuilderTest`

* dont need to freeze time for this test
  • Loading branch information
duncanmcclean authored Apr 17, 2024
1 parent 666f6d1 commit a4330c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Data/Entries/EntryQueryBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ private function createDummyCollectionAndEntries()
/** @test **/
public function entry_is_found_within_all_created_entries_using_entry_facade_with_find_method()
{
$this->freezeTime();

$searchedEntry = $this->createDummyCollectionAndEntries();
$retrievedEntry = Entry::query()->find($searchedEntry->id());

Expand All @@ -45,7 +47,7 @@ public function entry_is_found_within_all_created_entries_and_select_query_colum
$retrievedEntry->model(null);
$searchedEntry->model(null);

$this->assertSame(json_encode($searchedEntry), json_encode($retrievedEntry));
$this->assertSame(json_encode(['foo' => $searchedEntry->foo, 'collection' => $searchedEntry->collection()]), json_encode($retrievedEntry));
$this->assertSame($retrievedEntry->selectedQueryColumns(), $columns);
}

Expand Down

0 comments on commit a4330c1

Please sign in to comment.