liberu-genealogy / genealogy-old

Laravel 10.x backend using PHP 8.2. Family tree and genealogy data processing website software.
https://www.liberu.co.uk
MIT License
204 stars 59 forks source link

Fix bugs causing PHPUnit tests to fail #2120

Closed curtisdelicata closed 1 year ago

curtisdelicata commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

curtisdelicata commented 1 year ago

There were 2 errors:

1) AvatarTest::can_display_avatar ErrorException: Attempt to read property "id" on null

/home/circleci/project/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:259 /home/circleci/project/vendor/laravel-enso/avatars/tests/features/AvatarTest.php:37

2) AvatarTest::can_update_avatar ErrorException: Attempt to read property "file" on null

/home/circleci/project/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:259 /home/circleci/project/vendor/laravel-enso/avatars/tests/features/AvatarTest.php:54

--

There was 1 failure:

1) SelectTest::can_use_resource Failed asserting that false is true.

/home/circleci/project/vendor/laravel-enso/select/tests/features/SelectTest.php:141