/** * @covers ::insert */ public function testNoInsert() { $rel = $this->getMock('Harp\\Harp\\Rel\\HasMany', ['insert'], ['cities', Country::getRepo()->getConfig(), 'Harp\\Harp\\Test\\TestModel\\City']); $link = new LinkMany(new Country(), $rel, [new City()]); $models = new Models(); $result = $link->insert(); $this->assertNull($result); }