Skip to content
Snippets Groups Projects
JsonapiTesterActions.php 75 KiB
Newer Older
     * Asserts that two XML documents are not equal.
     * @param DOMDocument|string $expectedXml
     * @param DOMDocument|string $actualXml
     * @param string $message
     * @see \Codeception\Module\AbstractAsserts::assertXmlStringNotEqualsXmlString()
    public function assertXmlStringNotEqualsXmlString($expectedXml, $actualXml, $message = "") {
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertXmlStringNotEqualsXmlString', func_get_args()));
    /**
     * [!] Method is generated. Documentation taken from corresponding module.
     *
     * Fails a test with the given message.
     * @param string $message
     * @see \Codeception\Module\AbstractAsserts::fail()
    public function fail($message = "") {
        return $this->getScenario()->runStep(new \Codeception\Step\Action('fail', func_get_args()));
    /**
     * [!] Method is generated. Documentation taken from corresponding module.
     *
     * Mark the test as incomplete.
     * @param string $message
     * @see \Codeception\Module\AbstractAsserts::markTestIncomplete()
    public function markTestIncomplete($message = "") {
        return $this->getScenario()->runStep(new \Codeception\Step\Action('markTestIncomplete', func_get_args()));
    /**
     * [!] Method is generated. Documentation taken from corresponding module.
     *
     * Mark the test as skipped.
     * @param string $message
     * @see \Codeception\Module\AbstractAsserts::markTestSkipped()
    public function markTestSkipped($message = "") {
        return $this->getScenario()->runStep(new \Codeception\Step\Action('markTestSkipped', func_get_args()));
    /**
     * [!] Method is generated. Documentation taken from corresponding module.
     *
     *
     * @see \Helper\Credentials::getCredentialsForTestAutor()
     */
    public function getCredentialsForTestAutor() {
        return $this->getScenario()->runStep(new \Codeception\Step\Action('getCredentialsForTestAutor', func_get_args()));
    }

    /**
     * [!] Method is generated. Documentation taken from corresponding module.
     *
     *
     * @see \Helper\Credentials::getCredentialsForTestDozent()
     */
    public function getCredentialsForTestDozent() {
        return $this->getScenario()->runStep(new \Codeception\Step\Action('getCredentialsForTestDozent', func_get_args()));
    }

    /**
     * [!] Method is generated. Documentation taken from corresponding module.
     *
     *
     * @see \Helper\Credentials::getCredentialsForTestAdmin()
     */
    public function getCredentialsForTestAdmin() {
        return $this->getScenario()->runStep(new \Codeception\Step\Action('getCredentialsForTestAdmin', func_get_args()));
    }

    /**
     * [!] Method is generated. Documentation taken from corresponding module.
     *
     *
     * @see \Helper\Credentials::getCredentialsForRoot()
     */
    public function getCredentialsForRoot() {
        return $this->getScenario()->runStep(new \Codeception\Step\Action('getCredentialsForRoot', func_get_args()));
    }

    /**
     * [!] Method is generated. Documentation taken from corresponding module.
     *
     * @param array    $credentials
     * @param callable $function
     *
     * @return mixed
     *
     * @SuppressWarnings(PHPMD.Superglobals)
     * @see \Helper\Jsonapi::withPHPLib()
     */
    public function withPHPLib($credentials, $function) {
        return $this->getScenario()->runStep(new \Codeception\Step\Action('withPHPLib', func_get_args()));
    }

    /**
     * [!] Method is generated. Documentation taken from corresponding module.
     *
     * @param array    $credentials
     * @param string   $method
     * @param string   $pattern
     * @param callable $callable
     * @param ?string  $name
     * @see \Helper\Jsonapi::createApp()
     */
    public function createApp($credentials, $method, $pattern, $callable, $name = NULL) {
        return $this->getScenario()->runStep(new \Codeception\Step\Action('createApp', func_get_args()));
    }

    /**
     * [!] Method is generated. Documentation taken from corresponding module.
     *
     * @param array|null $credentials
     * @return JsonApiRequestBuilder
     * @see \Helper\Jsonapi::createRequestBuilder()
     */
    public function createRequestBuilder($credentials = NULL) {
        return $this->getScenario()->runStep(new \Codeception\Step\Action('createRequestBuilder', func_get_args()));
    }

    /**
     * [!] Method is generated. Documentation taken from corresponding module.
     *
     * @return JsonApiResponse
     * @see \Helper\Jsonapi::sendMockRequest()
     */
    public function sendMockRequest($app, \Slim\Psr7\Request $request) {
        return $this->getScenario()->runStep(new \Codeception\Step\Action('sendMockRequest', func_get_args()));
    }

    /**
     * [!] Method is generated. Documentation taken from corresponding module.
     *
     *
     * @see \Helper\Jsonapi::storeJsonMD()
     */
    public function storeJsonMD(string $filename, \Psr\Http\Message\ResponseInterface $response, ?int $limit = NULL, ?string $ellipsis = NULL): string {
        return $this->getScenario()->runStep(new \Codeception\Step\Action('storeJsonMD', func_get_args()));
    }
}