4 years ago

Testing delete links

Posted 4 years ago by hromby


I have a simple problem: I have a CompanyController (resource controller) and a list of companies. On that list, I have a delete link for each company.

How can I test that delete link with the testing facilities in Laravel (the stuff that previously was the Integrated package)?

I simply want to create a company with a factory, click a delete link and make sure that I have one less company in the database :-)

Please sign in or create an account to participate in this conversation.