/** * @covers ::has */ public function testHas() { $city = new City(); $city2 = new City(); $link = new LinkMany(new Country(), Country::getRepo()->getRel('cities'), [$city]); $this->assertFalse($link->has($city2)); $this->assertTrue($link->has($city)); }