コード例 #1
0
ファイル: LinkManyTest.php プロジェクト: harp-orm/harp
 /**
  * @covers ::isEmpty
  */
 public function testIsEmpty()
 {
     $city = new City();
     $link = new LinkMany(new Country(), Country::getRepo()->getRel('cities'), [$city]);
     $this->assertFalse($link->isEmpty());
     $emptyLink = new LinkMany(new Country(), Country::getRepo()->getRel('cities'), []);
     $this->assertTrue($emptyLink->isEmpty());
 }