getMissingRequirements example


  protected function checkRequirements() {
    if (!$this->getName(FALSE) || !method_exists($this$this->getName(FALSE))) {
      return;
    }

    $missingRequirements = Test::getMissingRequirements(
      static::class,
      $this->getName(FALSE)
    );

    if (!empty($missingRequirements)) {
      $this->markTestSkipped(implode(PHP_EOL, $missingRequirements));
    }

    $root = static::getDrupalRoot();

    // Check if required dependencies exist.
Home | Imprint | This part of the site doesn't use cookies.