Laravel Checklister. Part 22/29: PHPUnit Testing Finished (For Now)

preview_player
Показать описание
In this video, we've written the final tests, for now, and now can continue creating the remaining features of Checklister.

- - - - -
Support the channel by checking out our products:
Рекомендации по теме
Комментарии
Автор

To shorten the code a bit you can replace
`Artisan::call('db:seed');`
With
`$this->seed();`

It's only a small reduction, but still something

JustinByrne
Автор

Excellent video about tests! Thank you Povilas

drac.
Автор

The MenuService definitely needs refactoring. All those conditions make it hard to read and should be moved to separate methods like `$group['is_new'] = $this->isNewGroup($group);`.

devKazuto
Автор

Sorry sir, I have issues doing tests with SQlite I'm getting error: SQLSTATE[HY000]: General error: 1 Cannot add a NOT NULL column with default value NULL (SQL: alter table "users" add column "employee" varchar not null). Something happens when migrations' mutations is launched on SQlite.

bumblebity
Автор

Hi. Sorry for my query here regarding your Quickadminpanel as I could not find any suitable contact me page on your site. My query is that can I use this product if I have an existing Laravel 8 project with a database ? Actually I have a older database and wanted to build the laravel project over it, but could not find any suitable/workable solution on the net. You have a plugin to import 'csv' file. Can I use that for my existing database ( with data ) ? Kindly advice.

brokersaddatv
Автор

I wanted to see if I could refactor some of your tests but I had trouble setting up the environment because of laravel-spark. Do you know if there is a way to pass a dummy username/password when installing it or obtain testing credentials?

intipontt
Автор

what if we're not using blade and livewire (using vue for example) and we wanna test the front-end menus and so on, do you recommend testing with laravel as an api or using some front-end testing library or maybe laravel dusk for browser testing ?

bashardlaleh