spacebase / spacebasenz

Website for SpaceBase New Zealand
http://dev-spacebasenz.pantheonsite.io/
GNU General Public License v2.0
0 stars 0 forks source link

Behat testing introduced broken group #270

Closed treasuretron closed 4 years ago

treasuretron commented 4 years ago

In GitLab by @StephenCataldo on Sep 17, 2018, 21:10

Two errors, and guesswork that they are the same:

  1. Behat throws nearly indecipherable error:
    Then I simulate a daily pending applicant cron # FeatureContext::iSimulateDailyPendingApplicantCron() Fatal error: Call to a member function getContentPlugin() on null (Behat\Testwork\Call\Exception\FatalThrowableError)
  2. Group list last page (of recent groups) http://spacebase.lndo.site/admin/group?page=2 gives an error.

Warning & for documentation: hard to debug this, a behat test that runs and breaks can create a group that doesn't entirely exist.

group gid 146: Email Test Org

treasuretron commented 4 years ago

In GitLab by @StephenCataldo on Sep 17, 2018, 22:07

changed the description

treasuretron commented 4 years ago

In GitLab by @StephenCataldo on Sep 17, 2018, 22:08

Find the groups causing the error, and delete them. ex. for localhost (more care if we ever test on production and mess up data there) $storage = \Drupal::entityTypeManager()->getStorage('group'); $groups = $storage->loadMultiple(); foreach ($groups as $group) { if ($group->id() > 146) { $group->delete(); continue; }

treasuretron commented 4 years ago

In GitLab by @StephenCataldo on Sep 18, 2018, 18:26

marked this issue as related to #261

treasuretron commented 4 years ago

In GitLab by @StephenCataldo on Sep 18, 2018, 18:26

closed