Skip to content

Commit

Permalink
Cleanup middleware config
Browse files Browse the repository at this point in the history
  • Loading branch information
brendt committed Aug 16, 2024
1 parent 83b13c8 commit 6d7af32
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/Integration/Database/Builder/ModelQueryBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,24 @@
*/
class ModelQueryBuilderTest extends FrameworkIntegrationTestCase
{
public function test_where_statement(): void
{
$this->migrate(
CreateMigrationsTable::class,
CreateAuthorTable::class,
CreateBookTable::class,
);

(Book::new(title: 'A'))->save();
(Book::new(title: 'B'))->save();
(Book::new(title: 'C'))->save();
(Book::new(title: 'D'))->save();

$book = Book::query()->where('title = ?', 'B')->first();

$this->assertSame('B', $book->title);
}

public function test_order_by(): void
{
$this->migrate(
Expand Down

0 comments on commit 6d7af32

Please sign in to comment.