public function testHasLinks() { $this->product->expects($this->exactly(2))->method('getDownloadableLinks')->willReturn(['link1', 'link2']); $this->assertTrue($this->target->hasLinks($this->product)); }