Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
You get a fatal error when trying to run PantsAJAXTestCase.
This happens because:
"Invalid permission change pants status."
Argument 1 passed to Drupal\simpletest\WebTestBase::drupalLogin() must implement interface Drupal\Core\Session\AccountInterface, boolean given, called in /Users/webchick/Sites/8.x/modules/pants/src/Tests/PantsAJAXTestCase.php
"change pants status" actually is a valid permission.. it's defined in pants.permissions.yml and shows up in the permission listing. I wonder if this is an "order of operation" problem somehow?
Comments
Comment #1
webchickApplies to all of them, not just ajax test.
Comment #2
phenaproximaHmmm...Judging by the argument error, there's some flaw in the actual PantsAJAXTestCase code and the way it's using drupalLogin. Can you paste that code in? (I'm nowhere near a convertible pants right now...hah!) I'm guessing something changed in the parent test class.