Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy-j committed Jun 4, 2019
1 parent 08af7b6 commit 80bcef1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/ORM/EmbeddedRelationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,15 @@ public function testChangePromise()
$this->assertSame('user3', $u2->credentials->username);
}


public function testSelectEmbeddable()
{
$selector = new Select($this->orm, UserCredentials::class);
$u = $selector->orderBy('id', 'ASC')->fetchOne();

$this->assertSame('user1', $u->username);
}

public function testChangeWhole()
{
$selector = new Select($this->orm, User::class);
Expand Down

0 comments on commit 80bcef1

Please sign in to comment.