public function slugify() { $this->slugify->shouldReceive('slugify')->with('hällo wörld', '_')->once()->andReturn('haello_woerld'); $this->assertEquals('haello_woerld', $this->helper->slugify('hällo wörld', '_')); }