protected function fetchErrors() { if ($error = $this->module->grabCookie(self::COVERAGE_COOKIE_ERROR)) { $this->module->resetCookie(self::COVERAGE_COOKIE_ERROR); throw new RemoteException($error); } }
/** * Check a node deletion was successful. * * This can be overridden in other modules (e.g. the Helper) if * node deletion success needs to be checked in other ways. * * @param WebInterface $I * A reference to the Actor being used. * @param int $nid * The deleted nid. */ public function seeDeleteNodeWasSuccessful($I, $nid) { $I->see("has been deleted.", ".alert-success"); }
/** * Fill this widget on a web form. * * @param Web $I * The WebInterface (like the actor) being used within the active test scenario. * @param mixed $value * The value to put into the field's widget. Optional. If not provided, no fill will be attempted. */ public function fill($I, $value = null) { if (!empty($value)) { $I->fillField($this->getCssOrXpath(), $value); } }