Sfoglia il codice sorgente

Tests

feature/souke
Guillaume 1 anno fa
parent
commit
8390936fe3
1 ha cambiato i file con 134 aggiunte e 11 eliminazioni
  1. +134
    -11
      tests/codeception/backend/_support/_generated/AcceptanceTesterActions.php

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

@@ -1,4 +1,4 @@
<?php //[STAMP] 95a302f02389156d9cbbb435ba70b332
<?php //[STAMP] 07c05d2f1dfce28c06b749b2ec62500c
namespace tests\codeception\backend\_generated;

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

/**
* [!] 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.
*
@@ -2163,6 +2190,90 @@ trait AcceptanceTesterActions
}

/**
* [!] 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.
*
@@ -2279,4 +2390,16 @@ trait AcceptanceTesterActions
public function fixtures() {
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…
Annulla
Salva