/** * @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()); }