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

webchick’s picture

Title: Can't run PantsAJAXTestCase - invalid permission even though permission exists? » Can't run Pants's converted simpletests - invalid permission even though permission exists?

Applies to all of them, not just ajax test.

phenaproxima’s picture

Hmmm...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.