Step by Step Guide to building your first Laravel Application
Eric L. Barnes
235

nice tutorial :)
I’m not sure i’m understanding the part with the testing correctly tho:

  • are the instances of link persisted in the database when we run our test(s) and the method “testSubmitLinksToDb()” is called?
  • if yes, how does the insert handle the unique restriction we wrote in the migration (url should be unique yet we provide the same one each time the test is run)

Thank you for your answer

Like what you read? Give monter.montiro a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.