/** * Should be able to get the relation to another class. */ public function testRelationTo() { $imagesRelation = $this->makeMock(BelongsToMany::class); $this->product->shouldReceive('images')->once()->andReturn($imagesRelation); $this->assertEquals($imagesRelation, $this->productPresenter->relationTo(new Image())); }