private function getFileName() { $beneficiary = $this->beneficiary->find($this->beneficiaryUid); $beneficiaryName = permalinkify($beneficiary->name); $date = (new Carbon($this->startDate))->format('Y-m-d'); return $beneficiaryName . '-' . $date . '-weekly-beneficiary-report'; }
public function testPermalinkifySuccess() { // arrange $string = 'Now is the Time. 27!'; // act $result = permalinkify($string); // assert $this->assertEquals('now-is-the-time-27', $result); }
private function getFileName() { $beneficiary = $this->beneficiary->find($this->beneficiaryUid); $beneficiaryName = permalinkify($beneficiary->name); return $beneficiaryName . '-sponsorship-report'; }
private function getFileName() { $org = $this->org->find($this->orgUid); $orgName = $org ? permalinkify($org->name) : 'all'; return $orgName . '-full-registrations-report'; }