Skip to content

Commit

Permalink
Add test coverage after bringin data into COLUMNS
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell committed Jun 21, 2024
1 parent c1c998a commit 8fa342a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/Data/Entries/EntryQueryBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -930,4 +930,15 @@ public static function filterByStatusProvider()
]],
];
}

/** @test **/
public function entries_are_found_using_where_data()
{
$this->createDummyCollectionAndEntries();

$entries = Entry::query()->where('data->title', 'Post 1')->orWhere('data->title', 'Post 3')->get();

$this->assertCount(2, $entries);
$this->assertEquals(['Post 1', 'Post 3'], $entries->map->title->all());
}
}

0 comments on commit 8fa342a

Please sign in to comment.