/** * @param AbstractModel $model * @return LinkMany $this */ public function remove(AbstractModel $model) { $this->current->remove($model); return $this; }
/** * @covers ::remove */ public function testRemove() { $model = new City(); $models = new Models([$model]); $models->remove($model); $this->assertCount(0, $models); }