コード例 #1
0
ファイル: LinkManyTest.php プロジェクト: harp-orm/harp
 /**
  * @covers ::update
  */
 public function testNoUpdate()
 {
     $rel = $this->getMock('Harp\\Harp\\Rel\\HasManyThrough', ['update'], ['cities', Country::getRepo()->getConfig(), 'Harp\\Harp\\Test\\TestModel\\City', 'test']);
     $link = new LinkMany(new Country(), $rel, [new City()]);
     $models = new Models();
     $result = $link->update();
     $this->assertNull($result);
 }