acquia / blt-behat

Acquia BLT plugin providing integration with Behat
GNU General Public License v2.0
0 stars 16 forks source link

Call to undefined method when running `blt tests:behat:init` #14

Closed richardbporter closed 2 years ago

richardbporter commented 2 years ago

Very similarly to https://github.com/acquia/blt-multisite/issues/1, I'm getting an error with the latest version of acquia/blt running blt tests:behat:init:

PHP Fatal error:  Uncaught Error: Call to undefined method Acquia\Blt\Robo\Inspector\Inspector::isBehatConfigured() in /vendor/acquia/blt-behat/src/Blt/Plugin/Commands/BehatTestCommand.php:104
Stack trace:
#0 [internal function]: Acquia\BltBehat\Blt\Plugin\Commands\BehatTestCommand->behat(Array)
#1 /vendor/consolidation/annotated-command/src/CommandProcessor.php(257): call_user_func_array(Array, Array)
#2 /vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#3 /vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#4 /vendor/consolidation/annotated-command/src/AnnotatedCommand.php(313): Co in /vendor/acquia/blt-behat/src/Blt/Plugin/Commands/BehatTestCommand.php on line 104

Should this behat-related inspector code be moved into this plugin?

danepowell commented 2 years ago

Sorry about that. That explains why we were hanging onto all that legacy code (removed in https://github.com/acquia/blt/pull/4421). Chesterton's fence and all that...

Try the latest release, it's not pretty but I think it'll work and I wanted to get it out ahead of the holiday release freeze: https://github.com/acquia/blt-behat/releases/tag/v1.2.0

richardbporter commented 2 years ago

I think that did it, thanks!