PHP Fatal error: Call to a member function getType() on null in /Users/hfox/Sites/oa/drupal/sites/all/modules/panopoly/panopoly_test/tests/steps/panopoly_test.behat.inc

When trying to add a new step and hadn't defined it yet, got this error

Comments

hefox’s picture

Status: Active » Needs review
StatusFileSize
new782 bytes
dsnopek’s picture

Status: Needs review » Needs work

Good catch! However:

+++ b/tests/steps/panopoly_test.behat.inc
@@ -354,7 +354,13 @@ class TestSubContext extends BehatContext implements DrupalSubContextInterface {
+    if ($defination = $event->getDefinition()) {
+      $type = $defination->getType();
+    }

Spelling error in variable name: $defination instead of $definition

hefox’s picture

Status: Needs work » Needs review
StatusFileSize
new782 bytes

Oops!

dsnopek’s picture

Status: Needs review » Fixed

Thanks! Committed.

  • dsnopek committed bc3cc94 on 7.x-1.x
    Update Panopoly Test for Issue #2481145 by hefox: Undefined events don't...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.