Browse Source

Tests

feature/souke
Guillaume 1 year ago
parent
commit
8390936fe3
1 changed files with 134 additions and 11 deletions
  1. +134
    -11
      tests/codeception/backend/_support/_generated/AcceptanceTesterActions.php

+ 134
- 11
tests/codeception/backend/_support/_generated/AcceptanceTesterActions.php View File

<?php //[STAMP] 95a302f02389156d9cbbb435ba70b332
<?php //[STAMP] 07c05d2f1dfce28c06b749b2ec62500c
namespace tests\codeception\backend\_generated; namespace tests\codeception\backend\_generated;


// This class was automatically generated by build task // This class was automatically generated by build task
* // CSS button * // CSS button
* $I->click('#form input[type=submit]'); * $I->click('#form input[type=submit]');
* // XPath * // XPath
* $I->click('//form/*[@type=submit]');
* $I->click('//form/*[@type="submit"]');
* // link in context * // link in context
* $I->click('Logout', '#nav'); * $I->click('Logout', '#nav');
* // using strict locator * // using strict locator
* For checking the raw source code, use `seeInSource()`. * For checking the raw source code, use `seeInSource()`.
* *
* @param string $text * @param string $text
* @param string $selector optional
* @param array|string $selector optional
* Conditional Assertion: Test won't be stopped on fail * Conditional Assertion: Test won't be stopped on fail
* @see \Codeception\Lib\InnerBrowser::see() * @see \Codeception\Lib\InnerBrowser::see()
*/ */
* For checking the raw source code, use `seeInSource()`. * For checking the raw source code, use `seeInSource()`.
* *
* @param string $text * @param string $text
* @param string $selector optional
* @param array|string $selector optional
* @see \Codeception\Lib\InnerBrowser::see() * @see \Codeception\Lib\InnerBrowser::see()
*/ */
public function see($text, $selector = null) { public function see($text, $selector = null) {
* For checking the raw source code, use `seeInSource()`. * For checking the raw source code, use `seeInSource()`.
* *
* @param string $text * @param string $text
* @param string $selector optional
* @param array|string $selector optional
* Conditional Assertion: Test won't be stopped on fail * Conditional Assertion: Test won't be stopped on fail
* @see \Codeception\Lib\InnerBrowser::dontSee() * @see \Codeception\Lib\InnerBrowser::dontSee()
*/ */
* For checking the raw source code, use `seeInSource()`. * For checking the raw source code, use `seeInSource()`.
* *
* @param string $text * @param string $text
* @param string $selector optional
* @param array|string $selector optional
* @see \Codeception\Lib\InnerBrowser::dontSee() * @see \Codeception\Lib\InnerBrowser::dontSee()
*/ */
public function dontSee($text, $selector = null) { public function dontSee($text, $selector = null) {
* ``` php * ``` php
* <?php * <?php
* // to match root url * // to match root url
* $I->seeCurrentUrlMatches('~$/users/(\d+)~');
* $I->seeCurrentUrlMatches('~^/users/(\d+)~');
* ?> * ?>
* ``` * ```
* *
* ``` php * ``` php
* <?php * <?php
* // to match root url * // to match root url
* $I->seeCurrentUrlMatches('~$/users/(\d+)~');
* $I->seeCurrentUrlMatches('~^/users/(\d+)~');
* ?> * ?>
* ``` * ```
* *
* ``` php * ``` php
* <?php * <?php
* // to match root url * // to match root url
* $I->dontSeeCurrentUrlMatches('~$/users/(\d+)~');
* $I->dontSeeCurrentUrlMatches('~^/users/(\d+)~');
* ?> * ?>
* ``` * ```
* *
* ``` php * ``` php
* <?php * <?php
* // to match root url * // to match root url
* $I->dontSeeCurrentUrlMatches('~$/users/(\d+)~');
* $I->dontSeeCurrentUrlMatches('~^/users/(\d+)~');
* ?> * ?>
* ``` * ```
* *
* *
* ``` php * ``` php
* <?php * <?php
* $user_id = $I->grabFromCurrentUrl('~$/user/(\d+)/~');
* $user_id = $I->grabFromCurrentUrl('~^/user/(\d+)/~');
* $uri = $I->grabFromCurrentUrl(); * $uri = $I->grabFromCurrentUrl();
* ?> * ?>
* ``` * ```
} }


/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Checks that response code is between a certain range. Between actually means [from <= CODE <= to]
*
* @param $from
* @param $to
* Conditional Assertion: Test won't be stopped on fail
* @see \Codeception\Lib\InnerBrowser::seeResponseCodeIsBetween()
*/
public function canSeeResponseCodeIsBetween($from, $to) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeResponseCodeIsBetween', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Checks that response code is between a certain range. Between actually means [from <= CODE <= to]
*
* @param $from
* @param $to
* @see \Codeception\Lib\InnerBrowser::seeResponseCodeIsBetween()
*/
public function seeResponseCodeIsBetween($from, $to) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeResponseCodeIsBetween', func_get_args()));
}

/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
} }


/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Checks that the response code 2xx
* Conditional Assertion: Test won't be stopped on fail
* @see \Codeception\Lib\InnerBrowser::seeResponseCodeIsSuccessful()
*/
public function canSeeResponseCodeIsSuccessful() {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeResponseCodeIsSuccessful', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Checks that the response code 2xx
* @see \Codeception\Lib\InnerBrowser::seeResponseCodeIsSuccessful()
*/
public function seeResponseCodeIsSuccessful() {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeResponseCodeIsSuccessful', func_get_args()));
}

/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Checks that the response code 3xx
* Conditional Assertion: Test won't be stopped on fail
* @see \Codeception\Lib\InnerBrowser::seeResponseCodeIsRedirection()
*/
public function canSeeResponseCodeIsRedirection() {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeResponseCodeIsRedirection', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Checks that the response code 3xx
* @see \Codeception\Lib\InnerBrowser::seeResponseCodeIsRedirection()
*/
public function seeResponseCodeIsRedirection() {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeResponseCodeIsRedirection', func_get_args()));
}

/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Checks that the response code is 4xx
* Conditional Assertion: Test won't be stopped on fail
* @see \Codeception\Lib\InnerBrowser::seeResponseCodeIsClientError()
*/
public function canSeeResponseCodeIsClientError() {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeResponseCodeIsClientError', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Checks that the response code is 4xx
* @see \Codeception\Lib\InnerBrowser::seeResponseCodeIsClientError()
*/
public function seeResponseCodeIsClientError() {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeResponseCodeIsClientError', func_get_args()));
}

/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Checks that the response code is 5xx
* Conditional Assertion: Test won't be stopped on fail
* @see \Codeception\Lib\InnerBrowser::seeResponseCodeIsServerError()
*/
public function canSeeResponseCodeIsServerError() {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeResponseCodeIsServerError', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Checks that the response code is 5xx
* @see \Codeception\Lib\InnerBrowser::seeResponseCodeIsServerError()
*/
public function seeResponseCodeIsServerError() {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeResponseCodeIsServerError', func_get_args()));
}

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


/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Initialize the fixtures.
* @since 2.0.12
* @see \tests\codeception\common\_support\FixtureHelper::initFixtures()
*/
public function initFixtures() {
return $this->getScenario()->runStep(new \Codeception\Step\Action('initFixtures', func_get_args()));
}
} }

Loading…
Cancel
Save