Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Removed test code after upgrading to laravel 5.2 (will have to reinstate).
James Cole4b00db7662c8
diff --git a/tests/TestCase.php b/tests/TestCase.phpold mode 100644new mode 100755index c5a49310ed..8578b17e4a--- a/tests/TestCase.php+++ b/tests/TestCase.php@@ -1,10 +1,12 @@<?php-/**- * Class TestCase- */class TestCase extends Illuminate\Foundation\Testing\TestCase{+ /**+ * The base URL to use while testing the application.+ *+ * @var string+ */protected $baseUrl = 'http://localhost';/**@@ -14,38 +16,10 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase*/public function createApplication(){- $app = require __DIR__ . '/../bootstrap/app.php';+ $app = require __DIR__.'/../bootstrap/app.php';- $app->make('Illuminate\Contracts\Console\Kernel')->bootstrap();+ $app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();return $app;}-- /**- * Sets up the fixture, for example, opens a network connection.- * This method is called before a test is executed.- */- public function setUp()- {- parent::setUp();- }-- /**- * This method is called before the first test of this test class is run.- *- * @since Method available since Release 3.4.0- */- public static function setUpBeforeClass()- {- parent::setUpBeforeClass();- }-- /**- * Tears down the fixture, for example, closes a network connection.- * This method is called after a test is executed.- */- public function tearDown()- {- parent::tearDown();- }}diff --git a/tests/_support/FunctionalTester.php b/tests/_support/FunctionalTester.phpdeleted file mode 100644index 8f9d5f234a..0000000000--- a/tests/_support/FunctionalTester.php+++ /dev/null@@ -1,26 +0,0 @@-<?php---/**- * Inherited Methods- * @method void wantToTest($text)- * @method void wantTo($text)- * @method void execute($callable)- * @method void expectTo($prediction)- * @method void expect($prediction)- * @method void amGoingTo($argumentation)- * @method void am($role)- * @method void lookForwardTo($achieveValue)- * @method void comment($description)- * @method \Codeception\Lib\Friend haveFriend($name, $actorClass = null)- *- * @SuppressWarnings(PHPMD)-*/-class FunctionalTester extends \Codeception\Actor-{- use _generated\FunctionalTesterActions;-- /**- * Define custom actions here- */-}diff --git a/tests/_support/Helper/Functional.php b/tests/_support/Helper/Functional.phpdeleted file mode 100644index 1bd97acc12..0000000000--- a/tests/_support/Helper/Functional.php+++ /dev/null@@ -1,14 +0,0 @@-<?php-namespace Helper;-// here you can define custom actions-// all public methods declared in helper class will be available in $I--/**- * Class Functional- *- * @package Helper- */-class Functional extends \Codeception\Module-{--}diff --git a/tests/_support/Helper/Unit.php b/tests/_support/Helper/Unit.phpdeleted file mode 100644index 6c520ad7dc..0000000000--- a/tests/_support/Helper/Unit.php+++ /dev/null@@ -1,14 +0,0 @@-<?php-namespace Helper;-// here you can define custom actions-// all public methods declared in helper class will be available in $I--/**- * Class Unit- *- * @package Helper- */-class Unit extends \Codeception\Module-{--}diff --git a/tests/_support/UnitTester.php b/tests/_support/UnitTester.phpdeleted file mode 100644index 68c09cf856..0000000000--- a/tests/_support/UnitTester.php+++ /dev/null@@ -1,26 +0,0 @@-<?php---/**- * Inherited Methods- * @method void wantToTest($text)- * @method void wantTo($text)- * @method void execute($callable)- * @method void expectTo($prediction)- * @method void expect($prediction)- * @method void amGoingTo($argumentation)- * @method void am($role)- * @method void lookForwardTo($achieveValue)- * @method void comment($description)- * @method \Codeception\Lib\Friend haveFriend($name, $actorClass = null)- *- * @SuppressWarnings(PHPMD)-*/-class UnitTester extends \Codeception\Actor-{- use _generated\UnitTesterActions;-- /**- * Define custom actions here- */-}diff --git a/tests/_support/_generated/FunctionalTesterActions.php b/tests/_support/_generated/FunctionalTesterActions.phpdeleted file mode 100644index 293b5d56ef..0000000000--- a/tests/_support/_generated/FunctionalTesterActions.php+++ /dev/null@@ -1,23 +0,0 @@-<?php //[STAMP] 65f4e005f3be69d169e0f598e3c24741-namespace _generated;--// This class was automatically generated by build task-// You should not change it manually as it will be overwritten on next build-// @codingStandardsIgnoreFile--use Helper\Functional;--/**- * Class FunctionalTesterActions- *- * @package _generated- */-trait FunctionalTesterActions-{- /**- * @return \Codeception\Scenario- */- abstract protected function getScenario();---}diff --git a/tests/_support/_generated/UnitTesterActions.php b/tests/_support/_generated/UnitTesterActions.phpdeleted file mode 100644index 886e82ea5b..0000000000--- a/tests/_support/_generated/UnitTesterActions.php+++ /dev/null@@ -1,2756 +0,0 @@-<?php //[STAMP] 8176a400008c9f89866c86c7f00da02e-namespace _generated;--// This class was automatically generated by build task-// You should not change it manually as it will be overwritten on next build-// @codingStandardsIgnoreFile--use Codeception\Module\Laravel5;-use Codeception\Module\Asserts;-use Helper\Unit;--/**- * Class UnitTesterActions- *- * @package _generated- */-trait UnitTesterActions-{- /**- * @return \Codeception\Scenario- */- abstract protected function getScenario();--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Provides access the Laravel application object.- *- * @return \Illuminate\Foundation\Application- * @see \Codeception\Module\Laravel5::getApplication()- */- public function getApplication() {- return $this->getScenario()->runStep(new \Codeception\Step\Action('getApplication', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Opens web page using route name and parameters.- *- * ``` php- * <?php- * $I->amOnRoute('posts.create');- * ?>- * ```- *- * @param $routeName- * @param array $params- * @see \Codeception\Module\Laravel5::amOnRoute()- */- public function amOnRoute($routeName, $params = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Condition('amOnRoute', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Opens web page by action name- *- * ``` php- * <?php- * $I->amOnAction('PostsController@index');- * ?>- * ```- *- * @param $action- * @param array $params- * @see \Codeception\Module\Laravel5::amOnAction()- */- public function amOnAction($action, $params = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Condition('amOnAction', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that current url matches route- *- * ``` php- * <?php- * $I->seeCurrentRouteIs('posts.index');- * ?>- * ```- * @param $route- * @param array $params- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Module\Laravel5::seeCurrentRouteIs()- */- public function canSeeCurrentRouteIs($route, $params = null) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeCurrentRouteIs', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that current url matches route- *- * ``` php- * <?php- * $I->seeCurrentRouteIs('posts.index');- * ?>- * ```- * @param $route- * @param array $params- * @see \Codeception\Module\Laravel5::seeCurrentRouteIs()- */- public function seeCurrentRouteIs($route, $params = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeCurrentRouteIs', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that current url matches action- *- * ``` php- * <?php- * $I->seeCurrentActionIs('PostsController@index');- * ?>- * ```- *- * @param $action- * @param array $params- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Module\Laravel5::seeCurrentActionIs()- */- public function canSeeCurrentActionIs($action, $params = null) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeCurrentActionIs', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that current url matches action- *- * ``` php- * <?php- * $I->seeCurrentActionIs('PostsController@index');- * ?>- * ```- *- * @param $action- * @param array $params- * @see \Codeception\Module\Laravel5::seeCurrentActionIs()- */- public function seeCurrentActionIs($action, $params = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeCurrentActionIs', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Assert that a session variable exists.- *- * ``` php- * <?php- * $I->seeInSession('key');- * $I->seeInSession('key', 'value');- * ?>- * ```- *- * @param string|array $key- * @param mixed $value- * @return void- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Module\Laravel5::seeInSession()- */- public function canSeeInSession($key, $value = null) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeInSession', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Assert that a session variable exists.- *- * ``` php- * <?php- * $I->seeInSession('key');- * $I->seeInSession('key', 'value');- * ?>- * ```- *- * @param string|array $key- * @param mixed $value- * @return void- * @see \Codeception\Module\Laravel5::seeInSession()- */- public function seeInSession($key, $value = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInSession', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Assert that the session has a given list of values.- *- * ``` php- * <?php- * $I->seeSessionHasValues(['key1', 'key2']);- * $I->seeSessionHasValues(['key1' => 'value1', 'key2' => 'value2']);- * ?>- * ```- *- * @param array $bindings- * @return void- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Module\Laravel5::seeSessionHasValues()- */- public function canSeeSessionHasValues($bindings) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeSessionHasValues', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Assert that the session has a given list of values.- *- * ``` php- * <?php- * $I->seeSessionHasValues(['key1', 'key2']);- * $I->seeSessionHasValues(['key1' => 'value1', 'key2' => 'value2']);- * ?>- * ```- *- * @param array $bindings- * @return void- * @see \Codeception\Module\Laravel5::seeSessionHasValues()- */- public function seeSessionHasValues($bindings) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeSessionHasValues', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Assert that form errors are bound to the View.- *- * ``` php- * <?php- * $I->seeFormHasErrors();- * ?>- * ```- *- * @return bool- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Module\Laravel5::seeFormHasErrors()- */- public function canSeeFormHasErrors() {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeFormHasErrors', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Assert that form errors are bound to the View.- *- * ``` php- * <?php- * $I->seeFormHasErrors();- * ?>- * ```- *- * @return bool- * @see \Codeception\Module\Laravel5::seeFormHasErrors()- */- public function seeFormHasErrors() {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeFormHasErrors', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Assert that specific form error messages are set in the view.- *- * Useful for validation messages e.g.- * return `Redirect::to('register')->withErrors($validator);`- *- * Example of Usage- *- * ``` php- * <?php- * $I->seeFormErrorMessages(array('username'=>'Invalid Username'));- * ?>- * ```- * @param array $bindings- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Module\Laravel5::seeFormErrorMessages()- */- public function canSeeFormErrorMessages($bindings) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeFormErrorMessages', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Assert that specific form error messages are set in the view.- *- * Useful for validation messages e.g.- * return `Redirect::to('register')->withErrors($validator);`- *- * Example of Usage- *- * ``` php- * <?php- * $I->seeFormErrorMessages(array('username'=>'Invalid Username'));- * ?>- * ```- * @param array $bindings- * @see \Codeception\Module\Laravel5::seeFormErrorMessages()- */- public function seeFormErrorMessages($bindings) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeFormErrorMessages', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Assert that specific form error message is set in the view.- *- * Useful for validation messages and generally messages array- * e.g.- * return `Redirect::to('register')->withErrors($validator);`- *- * Example of Usage- *- * ``` php- * <?php- * $I->seeFormErrorMessage('username', 'Invalid Username');- * ?>- * ```- * @param string $key- * @param string $errorMessage- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Module\Laravel5::seeFormErrorMessage()- */- public function canSeeFormErrorMessage($key, $errorMessage) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeFormErrorMessage', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Assert that specific form error message is set in the view.- *- * Useful for validation messages and generally messages array- * e.g.- * return `Redirect::to('register')->withErrors($validator);`- *- * Example of Usage- *- * ``` php- * <?php- * $I->seeFormErrorMessage('username', 'Invalid Username');- * ?>- * ```- * @param string $key- * @param string $errorMessage- * @see \Codeception\Module\Laravel5::seeFormErrorMessage()- */- public function seeFormErrorMessage($key, $errorMessage) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeFormErrorMessage', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Set the currently logged in user for the application.- * Takes either an object that implements the User interface or- * an array of credentials.- *- * @param \Illuminate\Contracts\Auth\User|array $user- * @param string $driver- * @return void- * @see \Codeception\Module\Laravel5::amLoggedAs()- */- public function amLoggedAs($user, $driver = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Condition('amLoggedAs', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Logs user out- * @see \Codeception\Module\Laravel5::logout()- */- public function logout() {- return $this->getScenario()->runStep(new \Codeception\Step\Action('logout', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that user is authenticated- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Module\Laravel5::seeAuthentication()- */- public function canSeeAuthentication() {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeAuthentication', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that user is authenticated- * @see \Codeception\Module\Laravel5::seeAuthentication()- */- public function seeAuthentication() {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeAuthentication', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Check that user is not authenticated- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Module\Laravel5::dontSeeAuthentication()- */- public function cantSeeAuthentication() {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeAuthentication', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Check that user is not authenticated- * @see \Codeception\Module\Laravel5::dontSeeAuthentication()- */- public function dontSeeAuthentication() {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeAuthentication', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Return an instance of a class from the IoC Container.- * (http://laravel.com/docs/ioc)- *- * Example- * ``` php- * <?php- * // In Laravel- * App::bind('foo', function($app)- * {- * return new FooBar;- * });- *- * // Then in test- * $service = $I->grabService('foo');- *- * // Will return an instance of FooBar, also works for singletons.- * ?>- * ```- *- * @param string $class- * @return mixed- * @see \Codeception\Module\Laravel5::grabService()- */- public function grabService($class) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('grabService', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Inserts record into the database.- *- * ``` php- * <?php- * $user_id = $I->haveRecord('users', array('name' => 'Davert'));- * ?>- * ```- *- * @param $tableName- * @param array $attributes- * @return mixed- * @part orm- * @see \Codeception\Module\Laravel5::haveRecord()- */- public function haveRecord($tableName, $attributes = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('haveRecord', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that record exists in database.- *- * ``` php- * <?php- * $I->seeRecord('users', array('name' => 'davert'));- * ?>- * ```- *- * @param $tableName- * @param array $attributes- * @part orm- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Module\Laravel5::seeRecord()- */- public function canSeeRecord($tableName, $attributes = null) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeRecord', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that record exists in database.- *- * ``` php- * <?php- * $I->seeRecord('users', array('name' => 'davert'));- * ?>- * ```- *- * @param $tableName- * @param array $attributes- * @part orm- * @see \Codeception\Module\Laravel5::seeRecord()- */- public function seeRecord($tableName, $attributes = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeRecord', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that record does not exist in database.- *- * ``` php- * <?php- * $I->dontSeeRecord('users', array('name' => 'davert'));- * ?>- * ```- *- * @param $tableName- * @param array $attributes- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Module\Laravel5::dontSeeRecord()- */- public function cantSeeRecord($tableName, $attributes = null) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeRecord', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that record does not exist in database.- *- * ``` php- * <?php- * $I->dontSeeRecord('users', array('name' => 'davert'));- * ?>- * ```- *- * @param $tableName- * @param array $attributes- * @see \Codeception\Module\Laravel5::dontSeeRecord()- */- public function dontSeeRecord($tableName, $attributes = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeRecord', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Retrieves record from database- *- * ``` php- * <?php- * $category = $I->grabRecord('users', array('name' => 'davert'));- * ?>- * ```- *- * @param $tableName- * @param array $attributes- * @return mixed- * @part orm- * @see \Codeception\Module\Laravel5::grabRecord()- */- public function grabRecord($tableName, $attributes = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('grabRecord', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Authenticates user for HTTP_AUTH- *- * @param $username- * @param $password- * @see \Codeception\Lib\InnerBrowser::amHttpAuthenticated()- */- public function amHttpAuthenticated($username, $password) {- return $this->getScenario()->runStep(new \Codeception\Step\Condition('amHttpAuthenticated', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Opens the page for the given relative URI.- *- * ``` php- * <?php- * // opens front page- * $I->amOnPage('/');- * // opens /register page- * $I->amOnPage('/register');- * ?>- * ```- *- * @param $page- * @see \Codeception\Lib\InnerBrowser::amOnPage()- */- public function amOnPage($page) {- return $this->getScenario()->runStep(new \Codeception\Step\Condition('amOnPage', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Perform a click on a link or a button, given by a locator.- * If a fuzzy locator is given, the page will be searched for a button, link, or image matching the locator string.- * For buttons, the "value" attribute, "name" attribute, and inner text are searched.- * For links, the link text is searched.- * For images, the "alt" attribute and inner text of any parent links are searched.- *- * The second parameter is a context (CSS or XPath locator) to narrow the search.- *- * Note that if the locator matches a button of type `submit`, the form will be submitted.- *- * ``` php- * <?php- * // simple link- * $I->click('Logout');- * // button of form- * $I->click('Submit');- * // CSS button- * $I->click('#form input[type=submit]');- * // XPath- * $I->click('//form/*[@type=submit]');- * // link in context- * $I->click('Logout', '#nav');- * // using strict locator- * $I->click(['link' => 'Login']);- * ?>- * ```- *- * @param $link- * @param $context- * @see \Codeception\Lib\InnerBrowser::click()- */- public function click($link, $context = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('click', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that the current page contains the given string.- * Specify a locator as the second parameter to match a specific region.- *- * ``` php- * <?php- * $I->see('Logout'); // I can suppose user is logged in- * $I->see('Sign Up','h1'); // I can suppose it's a signup page- * $I->see('Sign Up','//body/h1'); // with XPath- * ?>- * ```- *- * @param $text- * @param null $selector- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Lib\InnerBrowser::see()- */- public function canSee($text, $selector = null) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('see', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that the current page contains the given string.- * Specify a locator as the second parameter to match a specific region.- *- * ``` php- * <?php- * $I->see('Logout'); // I can suppose user is logged in- * $I->see('Sign Up','h1'); // I can suppose it's a signup page- * $I->see('Sign Up','//body/h1'); // with XPath- * ?>- * ```- *- * @param $text- * @param null $selector- * @see \Codeception\Lib\InnerBrowser::see()- */- public function see($text, $selector = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('see', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that the current page doesn't contain the text specified.- * Give a locator as the second parameter to match a specific region.- *- * ```php- * <?php- * $I->dontSee('Login'); // I can suppose user is already logged in- * $I->dontSee('Sign Up','h1'); // I can suppose it's not a signup page- * $I->dontSee('Sign Up','//body/h1'); // with XPath- * ?>- * ```- *- * @param $text- * @param null $selector- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Lib\InnerBrowser::dontSee()- */- public function cantSee($text, $selector = null) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSee', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that the current page doesn't contain the text specified.- * Give a locator as the second parameter to match a specific region.- *- * ```php- * <?php- * $I->dontSee('Login'); // I can suppose user is already logged in- * $I->dontSee('Sign Up','h1'); // I can suppose it's not a signup page- * $I->dontSee('Sign Up','//body/h1'); // with XPath- * ?>- * ```- *- * @param $text- * @param null $selector- * @see \Codeception\Lib\InnerBrowser::dontSee()- */- public function dontSee($text, $selector = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSee', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that there's a link with the specified text.- * Give a full URL as the second parameter to match links with that exact URL.- *- * ``` php- * <?php- * $I->seeLink('Logout'); // matches <a href="#">Logout</a>- * $I->seeLink('Logout','/logout'); // matches <a href="/logout">Logout</a>- * ?>- * ```- *- * @param $text- * @param null $url- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Lib\InnerBrowser::seeLink()- */- public function canSeeLink($text, $url = null) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeLink', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that there's a link with the specified text.- * Give a full URL as the second parameter to match links with that exact URL.- *- * ``` php- * <?php- * $I->seeLink('Logout'); // matches <a href="#">Logout</a>- * $I->seeLink('Logout','/logout'); // matches <a href="/logout">Logout</a>- * ?>- * ```- *- * @param $text- * @param null $url- * @see \Codeception\Lib\InnerBrowser::seeLink()- */- public function seeLink($text, $url = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeLink', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that the page doesn't contain a link with the given string.- * If the second parameter is given, only links with a matching "href" attribute will be checked.- *- * ``` php- * <?php- * $I->dontSeeLink('Logout'); // I suppose user is not logged in- * $I->dontSeeLink('Checkout now', '/store/cart.php');- * ?>- * ```- *- * @param $text- * @param null $url- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Lib\InnerBrowser::dontSeeLink()- */- public function cantSeeLink($text, $url = null) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeLink', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that the page doesn't contain a link with the given string.- * If the second parameter is given, only links with a matching "href" attribute will be checked.- *- * ``` php- * <?php- * $I->dontSeeLink('Logout'); // I suppose user is not logged in- * $I->dontSeeLink('Checkout now', '/store/cart.php');- * ?>- * ```- *- * @param $text- * @param null $url- * @see \Codeception\Lib\InnerBrowser::dontSeeLink()- */- public function dontSeeLink($text, $url = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeLink', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that current URI contains the given string.- *- * ``` php- * <?php- * // to match: /home/dashboard- * $I->seeInCurrentUrl('home');- * // to match: /users/1- * $I->seeInCurrentUrl('/users/');- * ?>- * ```- *- * @param $uri- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Lib\InnerBrowser::seeInCurrentUrl()- */- public function canSeeInCurrentUrl($uri) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeInCurrentUrl', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that current URI contains the given string.- *- * ``` php- * <?php- * // to match: /home/dashboard- * $I->seeInCurrentUrl('home');- * // to match: /users/1- * $I->seeInCurrentUrl('/users/');- * ?>- * ```- *- * @param $uri- * @see \Codeception\Lib\InnerBrowser::seeInCurrentUrl()- */- public function seeInCurrentUrl($uri) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInCurrentUrl', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that the current URI doesn't contain the given string.- *- * ``` php- * <?php- * $I->dontSeeInCurrentUrl('/users/');- * ?>- * ```- *- * @param $uri- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Lib\InnerBrowser::dontSeeInCurrentUrl()- */- public function cantSeeInCurrentUrl($uri) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeInCurrentUrl', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that the current URI doesn't contain the given string.- *- * ``` php- * <?php- * $I->dontSeeInCurrentUrl('/users/');- * ?>- * ```- *- * @param $uri- * @see \Codeception\Lib\InnerBrowser::dontSeeInCurrentUrl()- */- public function dontSeeInCurrentUrl($uri) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInCurrentUrl', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that the current URL is equal to the given string.- * Unlike `seeInCurrentUrl`, this only matches the full URL.- *- * ``` php- * <?php- * // to match root url- * $I->seeCurrentUrlEquals('/');- * ?>- * ```- *- * @param $uri- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Lib\InnerBrowser::seeCurrentUrlEquals()- */- public function canSeeCurrentUrlEquals($uri) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeCurrentUrlEquals', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that the current URL is equal to the given string.- * Unlike `seeInCurrentUrl`, this only matches the full URL.- *- * ``` php- * <?php- * // to match root url- * $I->seeCurrentUrlEquals('/');- * ?>- * ```- *- * @param $uri- * @see \Codeception\Lib\InnerBrowser::seeCurrentUrlEquals()- */- public function seeCurrentUrlEquals($uri) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeCurrentUrlEquals', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that the current URL doesn't equal the given string.- * Unlike `dontSeeInCurrentUrl`, this only matches the full URL.- *- * ``` php- * <?php- * // current url is not root- * $I->dontSeeCurrentUrlEquals('/');- * ?>- * ```- *- * @param $uri- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Lib\InnerBrowser::dontSeeCurrentUrlEquals()- */- public function cantSeeCurrentUrlEquals($uri) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeCurrentUrlEquals', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that the current URL doesn't equal the given string.- * Unlike `dontSeeInCurrentUrl`, this only matches the full URL.- *- * ``` php- * <?php- * // current url is not root- * $I->dontSeeCurrentUrlEquals('/');- * ?>- * ```- *- * @param $uri- * @see \Codeception\Lib\InnerBrowser::dontSeeCurrentUrlEquals()- */- public function dontSeeCurrentUrlEquals($uri) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeCurrentUrlEquals', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that the current URL matches the given regular expression.- *- * ``` php- * <?php- * // to match root url- * $I->seeCurrentUrlMatches('~$/users/(\d+)~');- * ?>- * ```- *- * @param $uri- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Lib\InnerBrowser::seeCurrentUrlMatches()- */- public function canSeeCurrentUrlMatches($uri) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeCurrentUrlMatches', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that the current URL matches the given regular expression.- *- * ``` php- * <?php- * // to match root url- * $I->seeCurrentUrlMatches('~$/users/(\d+)~');- * ?>- * ```- *- * @param $uri- * @see \Codeception\Lib\InnerBrowser::seeCurrentUrlMatches()- */- public function seeCurrentUrlMatches($uri) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeCurrentUrlMatches', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that current url doesn't match the given regular expression.- *- * ``` php- * <?php- * // to match root url- * $I->dontSeeCurrentUrlMatches('~$/users/(\d+)~');- * ?>- * ```- *- * @param $uri- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Lib\InnerBrowser::dontSeeCurrentUrlMatches()- */- public function cantSeeCurrentUrlMatches($uri) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeCurrentUrlMatches', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that current url doesn't match the given regular expression.- *- * ``` php- * <?php- * // to match root url- * $I->dontSeeCurrentUrlMatches('~$/users/(\d+)~');- * ?>- * ```- *- * @param $uri- * @see \Codeception\Lib\InnerBrowser::dontSeeCurrentUrlMatches()- */- public function dontSeeCurrentUrlMatches($uri) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeCurrentUrlMatches', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Executes the given regular expression against the current URI and returns the first match.- * If no parameters are provided, the full URI is returned.- *- * ``` php- * <?php- * $user_id = $I->grabFromCurrentUrl('~$/user/(\d+)/~');- * $uri = $I->grabFromCurrentUrl();- * ?>- * ```- *- * @param null $uri- *- * @internal param $url- * @return mixed- * @see \Codeception\Lib\InnerBrowser::grabFromCurrentUrl()- */- public function grabFromCurrentUrl($uri = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('grabFromCurrentUrl', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that the specified checkbox is checked.- *- * ``` php- * <?php- * $I->seeCheckboxIsChecked('#agree'); // I suppose user agreed to terms- * $I->seeCheckboxIsChecked('#signup_form input[type=checkbox]'); // I suppose user agreed to terms, If there is only one checkbox in form.- * $I->seeCheckboxIsChecked('//form/input[@type=checkbox and @name=agree]');- * ?>- * ```- *- * @param $checkbox- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Lib\InnerBrowser::seeCheckboxIsChecked()- */- public function canSeeCheckboxIsChecked($checkbox) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeCheckboxIsChecked', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that the specified checkbox is checked.- *- * ``` php- * <?php- * $I->seeCheckboxIsChecked('#agree'); // I suppose user agreed to terms- * $I->seeCheckboxIsChecked('#signup_form input[type=checkbox]'); // I suppose user agreed to terms, If there is only one checkbox in form.- * $I->seeCheckboxIsChecked('//form/input[@type=checkbox and @name=agree]');- * ?>- * ```- *- * @param $checkbox- * @see \Codeception\Lib\InnerBrowser::seeCheckboxIsChecked()- */- public function seeCheckboxIsChecked($checkbox) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeCheckboxIsChecked', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Check that the specified checkbox is unchecked.- *- * ``` php- * <?php- * $I->dontSeeCheckboxIsChecked('#agree'); // I suppose user didn't agree to terms- * $I->seeCheckboxIsChecked('#signup_form input[type=checkbox]'); // I suppose user didn't check the first checkbox in form.- * ?>- * ```- *- * @param $checkbox- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Lib\InnerBrowser::dontSeeCheckboxIsChecked()- */- public function cantSeeCheckboxIsChecked($checkbox) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeCheckboxIsChecked', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Check that the specified checkbox is unchecked.- *- * ``` php- * <?php- * $I->dontSeeCheckboxIsChecked('#agree'); // I suppose user didn't agree to terms- * $I->seeCheckboxIsChecked('#signup_form input[type=checkbox]'); // I suppose user didn't check the first checkbox in form.- * ?>- * ```- *- * @param $checkbox- * @see \Codeception\Lib\InnerBrowser::dontSeeCheckboxIsChecked()- */- public function dontSeeCheckboxIsChecked($checkbox) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeCheckboxIsChecked', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that the given input field or textarea contains the given value.- * For fuzzy locators, fields are matched by label text, the "name" attribute, CSS, and XPath.- *- * ``` php- * <?php- * $I->seeInField('Body','Type your comment here');- * $I->seeInField('form textarea[name=body]','Type your comment here');- * $I->seeInField('form input[type=hidden]','hidden_value');- * $I->seeInField('#searchform input','Search');- * $I->seeInField('//form/*[@name=search]','Search');- * $I->seeInField(['name' => 'search'], 'Search');- * ?>- * ```- *- * @param $field- * @param $value- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Lib\InnerBrowser::seeInField()- */- public function canSeeInField($field, $value) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeInField', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that the given input field or textarea contains the given value.- * For fuzzy locators, fields are matched by label text, the "name" attribute, CSS, and XPath.- *- * ``` php- * <?php- * $I->seeInField('Body','Type your comment here');- * $I->seeInField('form textarea[name=body]','Type your comment here');- * $I->seeInField('form input[type=hidden]','hidden_value');- * $I->seeInField('#searchform input','Search');- * $I->seeInField('//form/*[@name=search]','Search');- * $I->seeInField(['name' => 'search'], 'Search');- * ?>- * ```- *- * @param $field- * @param $value- * @see \Codeception\Lib\InnerBrowser::seeInField()- */- public function seeInField($field, $value) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInField', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that an input field or textarea doesn't contain the given value.- * For fuzzy locators, the field is matched by label text, CSS and XPath.- *- * ``` php- * <?php- * $I->dontSeeInField('Body','Type your comment here');- * $I->dontSeeInField('form textarea[name=body]','Type your comment here');- * $I->dontSeeInField('form input[type=hidden]','hidden_value');- * $I->dontSeeInField('#searchform input','Search');- * $I->dontSeeInField('//form/*[@name=search]','Search');- * $I->dontSeeInField(['name' => 'search'], 'Search');- * ?>- * ```- *- * @param $field- * @param $value- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Lib\InnerBrowser::dontSeeInField()- */- public function cantSeeInField($field, $value) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeInField', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that an input field or textarea doesn't contain the given value.- * For fuzzy locators, the field is matched by label text, CSS and XPath.- *- * ``` php- * <?php- * $I->dontSeeInField('Body','Type your comment here');- * $I->dontSeeInField('form textarea[name=body]','Type your comment here');- * $I->dontSeeInField('form input[type=hidden]','hidden_value');- * $I->dontSeeInField('#searchform input','Search');- * $I->dontSeeInField('//form/*[@name=search]','Search');- * $I->dontSeeInField(['name' => 'search'], 'Search');- * ?>- * ```- *- * @param $field- * @param $value- * @see \Codeception\Lib\InnerBrowser::dontSeeInField()- */- public function dontSeeInField($field, $value) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInField', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks if the array of form parameters (name => value) are set on the form matched with the- * passed selector.- *- * ``` php- * <?php- * $I->seeInFormFields('form[name=myform]', [- * 'input1' => 'value',- * 'input2' => 'other value',- * ]);- * ?>- * ```- *- * For multi-select elements, or to check values of multiple elements with the same name, an- * array may be passed:- *- * ``` php- * <?php- * $I->seeInFormFields('.form-class', [- * 'multiselect' => [- * 'value1',- * 'value2',- * ],- * 'checkbox[]' => [- * 'a checked value',- * 'another checked value',- * ],- * ]);- * ?>- * ```- *- * Additionally, checkbox values can be checked with a boolean.- *- * ``` php- * <?php- * $I->seeInFormFields('#form-id', [- * 'checkbox1' => true, // passes if checked- * 'checkbox2' => false, // passes if unchecked- * ]);- * ?>- * ```- *- * Pair this with submitForm for quick testing magic.- *- * ``` php- * <?php- * $form = [- * 'field1' => 'value',- * 'field2' => 'another value',- * 'checkbox1' => true,- * // ...- * ];- * $I->submitForm('//form[@id=my-form]', $form, 'submitButton');- * // $I->amOnPage('/path/to/form-page') may be needed- * $I->seeInFormFields('//form[@id=my-form]', $form);- * ?>- * ```- *- * @param $formSelector- * @param $params- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Lib\InnerBrowser::seeInFormFields()- */- public function canSeeInFormFields($formSelector, $params) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeInFormFields', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks if the array of form parameters (name => value) are set on the form matched with the- * passed selector.- *- * ``` php- * <?php- * $I->seeInFormFields('form[name=myform]', [- * 'input1' => 'value',- * 'input2' => 'other value',- * ]);- * ?>- * ```- *- * For multi-select elements, or to check values of multiple elements with the same name, an- * array may be passed:- *- * ``` php- * <?php- * $I->seeInFormFields('.form-class', [- * 'multiselect' => [- * 'value1',- * 'value2',- * ],- * 'checkbox[]' => [- * 'a checked value',- * 'another checked value',- * ],- * ]);- * ?>- * ```- *- * Additionally, checkbox values can be checked with a boolean.- *- * ``` php- * <?php- * $I->seeInFormFields('#form-id', [- * 'checkbox1' => true, // passes if checked- * 'checkbox2' => false, // passes if unchecked- * ]);- * ?>- * ```- *- * Pair this with submitForm for quick testing magic.- *- * ``` php- * <?php- * $form = [- * 'field1' => 'value',- * 'field2' => 'another value',- * 'checkbox1' => true,- * // ...- * ];- * $I->submitForm('//form[@id=my-form]', $form, 'submitButton');- * // $I->amOnPage('/path/to/form-page') may be needed- * $I->seeInFormFields('//form[@id=my-form]', $form);- * ?>- * ```- *- * @param $formSelector- * @param $params- * @see \Codeception\Lib\InnerBrowser::seeInFormFields()- */- public function seeInFormFields($formSelector, $params) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInFormFields', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks if the array of form parameters (name => value) are not set on the form matched with- * the passed selector.- *- * ``` php- * <?php- * $I->dontSeeInFormFields('form[name=myform]', [- * 'input1' => 'non-existent value',- * 'input2' => 'other non-existent value',- * ]);- * ?>- * ```- *- * To check that an element hasn't been assigned any one of many values, an array can be passed- * as the value:- *- * ``` php- * <?php- * $I->dontSeeInFormFields('.form-class', [- * 'fieldName' => [- * 'This value shouldn\'t be set',- * 'And this value shouldn\'t be set',- * ],- * ]);- * ?>- * ```- *- * Additionally, checkbox values can be checked with a boolean.- *- * ``` php- * <?php- * $I->dontSeeInFormFields('#form-id', [- * 'checkbox1' => true, // fails if checked- * 'checkbox2' => false, // fails if unchecked- * ]);- * ?>- * ```- *- * @param $formSelector- * @param $params- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Lib\InnerBrowser::dontSeeInFormFields()- */- public function cantSeeInFormFields($formSelector, $params) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeInFormFields', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks if the array of form parameters (name => value) are not set on the form matched with- * the passed selector.- *- * ``` php- * <?php- * $I->dontSeeInFormFields('form[name=myform]', [- * 'input1' => 'non-existent value',- * 'input2' => 'other non-existent value',- * ]);- * ?>- * ```- *- * To check that an element hasn't been assigned any one of many values, an array can be passed- * as the value:- *- * ``` php- * <?php- * $I->dontSeeInFormFields('.form-class', [- * 'fieldName' => [- * 'This value shouldn\'t be set',- * 'And this value shouldn\'t be set',- * ],- * ]);- * ?>- * ```- *- * Additionally, checkbox values can be checked with a boolean.- *- * ``` php- * <?php- * $I->dontSeeInFormFields('#form-id', [- * 'checkbox1' => true, // fails if checked- * 'checkbox2' => false, // fails if unchecked- * ]);- * ?>- * ```- *- * @param $formSelector- * @param $params- * @see \Codeception\Lib\InnerBrowser::dontSeeInFormFields()- */- public function dontSeeInFormFields($formSelector, $params) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInFormFields', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Submits the given form on the page, optionally with the given form- * values. Give the form fields values as an array.- *- * Skipped fields will be filled by their values from the page.- * You don't need to click the 'Submit' button afterwards.- * This command itself triggers the request to form's action.- *- * You can optionally specify what button's value to include- * in the request with the last parameter as an alternative to- * explicitly setting its value in the second parameter, as- * button values are not otherwise included in the request.- *- * Examples:- *- * ``` php- * <?php- * $I->submitForm('#login', [- * 'login' => 'davert',- * 'password' => '123456'- * ]);- * // or- * $I->submitForm('#login', [- * 'login' => 'davert',- * 'password' => '123456'- * ], 'submitButtonName');- *- * ```- *- * For example, given this sample "Sign Up" form:- *- * ``` html- * <form action="/sign_up">- * Login:- * <input type="text" name="user[login]" /><br/>- * Password:- * <input type="password" name="user[password]" /><br/>- * Do you agree to out terms?- * <input type="checkbox" name="user[agree]" /><br/>- * Select pricing plan:- * <select name="plan">- * <option value="1">Free</option>- * <option value="2" selected="selected">Paid</option>- * </select>- * <input type="submit" name="submitButton" value="Submit" />- * </form>- * ```- *- * You could write the following to submit it:- *- * ``` php- * <?php- * $I->submitForm(- * '#userForm',- * [- * 'user' => [- * 'login' => 'Davert',- * 'password' => '123456',- * 'agree' => true- * ]- * ],- * 'submitButton'- * );- * ```- * Note that "2" will be the submitted value for the "plan" field, as it is- * the selected option.- *- * You can also emulate a JavaScript submission by not specifying any- * buttons in the third parameter to submitForm.- *- * ```php- * <?php- * $I->submitForm(- * '#userForm',- * [- * 'user' => [- * 'login' => 'Davert',- * 'password' => '123456',- * 'agree' => true- * ]- * ]- * );- * ```- *- * Pair this with seeInFormFields for quick testing magic.- *- * ``` php- * <?php- * $form = [- * 'field1' => 'value',- * 'field2' => 'another value',- * 'checkbox1' => true,- * // ...- * ];- * $I->submitForm('//form[@id=my-form]', $form, 'submitButton');- * // $I->amOnPage('/path/to/form-page') may be needed- * $I->seeInFormFields('//form[@id=my-form]', $form);- * ?>- * ```- *- * Parameter values can be set to arrays for multiple input fields- * of the same name, or multi-select combo boxes. For checkboxes,- * either the string value can be used, or boolean values which will- * be replaced by the checkbox's value in the DOM.- *- * ``` php- * <?php- * $I->submitForm('#my-form', [- * 'field1' => 'value',- * 'checkbox' => [- * 'value of first checkbox',- * 'value of second checkbox,- * ],- * 'otherCheckboxes' => [- * true,- * false,- * false- * ],- * 'multiselect' => [- * 'first option value',- * 'second option value'- * ]- * ]);- * ?>- * ```- *- * Mixing string and boolean values for a checkbox's value is not supported- * and may produce unexpected results.- *- * Field names ending in "[]" must be passed without the trailing square- * bracket characters, and must contain an array for its value. This allows- * submitting multiple values with the same name, consider:- *- * ```php- * $I->submitForm('#my-form', [- * 'field[]' => 'value',- * 'field[]' => 'another value', // 'field[]' is already a defined key- * ]);- * ```- *- * The solution is to pass an array value:- *- * ```php- * // this way both values are submitted- * $I->submitForm('#my-form', [- * 'field' => [- * 'value',- * 'another value',- * ]- * ]);- * ```- *- * @param $selector- * @param $params- * @param $button- * @see \Codeception\Lib\InnerBrowser::submitForm()- */- public function submitForm($selector, $params, $button = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('submitForm', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Fills a text field or textarea with the given string.- *- * ``` php- * <?php- * $I->fillField("//input[@type='text']", "Hello World!");- * $I->fillField(['name' => 'email'], '[email protected]');- * ?>- * ```- *- * @param $field- * @param $value- * @see \Codeception\Lib\InnerBrowser::fillField()- */- public function fillField($field, $value) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('fillField', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Selects an option in a select tag or in radio button group.- *- * ``` php- * <?php- * $I->selectOption('form select[name=account]', 'Premium');- * $I->selectOption('form input[name=payment]', 'Monthly');- * $I->selectOption('//form/select[@name=account]', 'Monthly');- * ?>- * ```- *- * Provide an array for the second argument to select multiple options:- *- * ``` php- * <?php- * $I->selectOption('Which OS do you use?', array('Windows','Linux'));- * ?>- * ```- *- * @param $select- * @param $option- * @see \Codeception\Lib\InnerBrowser::selectOption()- */- public function selectOption($select, $option) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('selectOption', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Ticks a checkbox. For radio buttons, use the `selectOption` method instead.- *- * ``` php- * <?php- * $I->checkOption('#agree');- * ?>- * ```- *- * @param $option- * @see \Codeception\Lib\InnerBrowser::checkOption()- */- public function checkOption($option) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('checkOption', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Unticks a checkbox.- *- * ``` php- * <?php- * $I->uncheckOption('#notify');- * ?>- * ```- *- * @param $option- * @see \Codeception\Lib\InnerBrowser::uncheckOption()- */- public function uncheckOption($option) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('uncheckOption', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Attaches a file relative to the Codeception data directory to the given file upload field.- *- * ``` php- * <?php- * // file is stored in 'tests/_data/prices.xls'- * $I->attachFile('input[@type="file"]', 'prices.xls');- * ?>- * ```- *- * @param $field- * @param $filename- * @see \Codeception\Lib\InnerBrowser::attachFile()- */- public function attachFile($field, $filename) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('attachFile', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * If your page triggers an ajax request, you can perform it manually.- * This action sends a GET ajax request with specified params.- *- * See ->sendAjaxPostRequest for examples.- *- * @param $uri- * @param $params- * @see \Codeception\Lib\InnerBrowser::sendAjaxGetRequest()- */- public function sendAjaxGetRequest($uri, $params = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('sendAjaxGetRequest', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * If your page triggers an ajax request, you can perform it manually.- * This action sends a POST ajax request with specified params.- * Additional params can be passed as array.- *- * Example:- *- * Imagine that by clicking checkbox you trigger ajax request which updates user settings.- * We emulate that click by running this ajax request manually.- *- * ``` php- * <?php- * $I->sendAjaxPostRequest('/updateSettings', array('notifications' => true)); // POST- * $I->sendAjaxGetRequest('/updateSettings', array('notifications' => true)); // GET- *- * ```- *- * @param $uri- * @param $params- * @see \Codeception\Lib\InnerBrowser::sendAjaxPostRequest()- */- public function sendAjaxPostRequest($uri, $params = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('sendAjaxPostRequest', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * If your page triggers an ajax request, you can perform it manually.- * This action sends an ajax request with specified method and params.- *- * Example:- *- * You need to perform an ajax request specifying the HTTP method.- *- * ``` php- * <?php- * $I->sendAjaxRequest('PUT', '/posts/7', array('title' => 'new title'));- *- * ```- *- * @param $method- * @param $uri- * @param $params- * @see \Codeception\Lib\InnerBrowser::sendAjaxRequest()- */- public function sendAjaxRequest($method, $uri, $params = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('sendAjaxRequest', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Finds and returns the text contents of the given element.- * If a fuzzy locator is used, the element is found using CSS, XPath, and by matching the full page source by regular expression.- *- * ``` php- * <?php- * $heading = $I->grabTextFrom('h1');- * $heading = $I->grabTextFrom('descendant-or-self::h1');- * $value = $I->grabTextFrom('~<input value=(.*?)]~sgi'); // match with a regex- * ?>- * ```- *- * @param $cssOrXPathOrRegex- *- * @return mixed- * @see \Codeception\Lib\InnerBrowser::grabTextFrom()- */- public function grabTextFrom($cssOrXPathOrRegex) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('grabTextFrom', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Grabs the value of the given attribute value from the given element.- * Fails if element is not found.- *- * ``` php- * <?php- * $I->grabAttributeFrom('#tooltip', 'title');- * ?>- * ```- *- *- * @param $cssOrXpath- * @param $attribute- * @internal param $element- * @return mixed- * @see \Codeception\Lib\InnerBrowser::grabAttributeFrom()- */- public function grabAttributeFrom($cssOrXpath, $attribute) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('grabAttributeFrom', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- *- * @see \Codeception\Lib\InnerBrowser::grabMultiple()- */- public function grabMultiple($cssOrXpath, $attribute = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('grabMultiple', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * @param $field- *- * @return array|mixed|null|string- * @see \Codeception\Lib\InnerBrowser::grabValueFrom()- */- public function grabValueFrom($field) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('grabValueFrom', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Sets a cookie with the given name and value.- * You can set additional cookie params like `domain`, `path`, `expire`, `secure` in array passed as last argument.- *- * ``` php- * <?php- * $I->setCookie('PHPSESSID', 'el4ukv0kqbvoirg7nkp4dncpk3');- * ?>- * ```- *- * @param $name- * @param $val- * @param array $params- *- * @return mixed- * @see \Codeception\Lib\InnerBrowser::setCookie()- */- public function setCookie($name, $val, $params = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('setCookie', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Grabs a cookie value.- * You can set additional cookie params like `domain`, `path` in array passed as last argument.- *- * @param $cookie- *- * @param array $params- * @return mixed- * @see \Codeception\Lib\InnerBrowser::grabCookie()- */- public function grabCookie($cookie, $params = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('grabCookie', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that a cookie with the given name is set.- * You can set additional cookie params like `domain`, `path` as array passed in last argument.- *- * ``` php- * <?php- * $I->seeCookie('PHPSESSID');- * ?>- * ```- *- * @param $cookie- * @param array $params- * @return mixed- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Lib\InnerBrowser::seeCookie()- */- public function canSeeCookie($cookie, $params = null) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeCookie', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that a cookie with the given name is set.- * You can set additional cookie params like `domain`, `path` as array passed in last argument.- *- * ``` php- * <?php- * $I->seeCookie('PHPSESSID');- * ?>- * ```- *- * @param $cookie- * @param array $params- * @return mixed- * @see \Codeception\Lib\InnerBrowser::seeCookie()- */- public function seeCookie($cookie, $params = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeCookie', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that there isn't a cookie with the given name.- * You can set additional cookie params like `domain`, `path` as array passed in last argument.- *- * @param $cookie- *- * @param array $params- * @return mixed- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Lib\InnerBrowser::dontSeeCookie()- */- public function cantSeeCookie($cookie, $params = null) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeCookie', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that there isn't a cookie with the given name.- * You can set additional cookie params like `domain`, `path` as array passed in last argument.- *- * @param $cookie- *- * @param array $params- * @return mixed- * @see \Codeception\Lib\InnerBrowser::dontSeeCookie()- */- public function dontSeeCookie($cookie, $params = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeCookie', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Unsets cookie with the given name.- * You can set additional cookie params like `domain`, `path` in array passed as last argument.- *- * @param $cookie- *- * @param array $params- * @return mixed- * @see \Codeception\Lib\InnerBrowser::resetCookie()- */- public function resetCookie($name, $params = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('resetCookie', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that the given element exists on the page and is visible.- * You can also specify expected attributes of this element.- *- * ``` php- * <?php- * $I->seeElement('.error');- * $I->seeElement('//form/input[1]');- * $I->seeElement('input', ['name' => 'login']);- * $I->seeElement('input', ['value' => '123456']);- *- * // strict locator in first arg, attributes in second- * $I->seeElement(['css' => 'form input'], ['name' => 'login']);- * ?>- * ```- *- * @param $selector- * @param array $attributes- * @return- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Lib\InnerBrowser::seeElement()- */- public function canSeeElement($selector, $attributes = null) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeElement', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that the given element exists on the page and is visible.- * You can also specify expected attributes of this element.- *- * ``` php- * <?php- * $I->seeElement('.error');- * $I->seeElement('//form/input[1]');- * $I->seeElement('input', ['name' => 'login']);- * $I->seeElement('input', ['value' => '123456']);- *- * // strict locator in first arg, attributes in second- * $I->seeElement(['css' => 'form input'], ['name' => 'login']);- * ?>- * ```- *- * @param $selector- * @param array $attributes- * @return- * @see \Codeception\Lib\InnerBrowser::seeElement()- */- public function seeElement($selector, $attributes = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeElement', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that the given element is invisible or not present on the page.- * You can also specify expected attributes of this element.- *- * ``` php- * <?php- * $I->dontSeeElement('.error');- * $I->dontSeeElement('//form/input[1]');- * $I->dontSeeElement('input', ['name' => 'login']);- * $I->dontSeeElement('input', ['value' => '123456']);- * ?>- * ```- *- * @param $selector- * @param array $attributes- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Lib\InnerBrowser::dontSeeElement()- */- public function cantSeeElement($selector, $attributes = null) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeElement', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that the given element is invisible or not present on the page.- * You can also specify expected attributes of this element.- *- * ``` php- * <?php- * $I->dontSeeElement('.error');- * $I->dontSeeElement('//form/input[1]');- * $I->dontSeeElement('input', ['name' => 'login']);- * $I->dontSeeElement('input', ['value' => '123456']);- * ?>- * ```- *- * @param $selector- * @param array $attributes- * @see \Codeception\Lib\InnerBrowser::dontSeeElement()- */- public function dontSeeElement($selector, $attributes = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeElement', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that there are a certain number of elements matched by the given locator on the page.- *- * ``` php- * <?php- * $I->seeNumberOfElements('tr', 10);- * $I->seeNumberOfElements('tr', [0,10]); //between 0 and 10 elements- * ?>- * ```- * @param $selector- * @param mixed $expected :- * - string: strict number- * - array: range of numbers [0,10]- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Lib\InnerBrowser::seeNumberOfElements()- */- public function canSeeNumberOfElements($selector, $expected) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeNumberOfElements', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that there are a certain number of elements matched by the given locator on the page.- *- * ``` php- * <?php- * $I->seeNumberOfElements('tr', 10);- * $I->seeNumberOfElements('tr', [0,10]); //between 0 and 10 elements- * ?>- * ```- * @param $selector- * @param mixed $expected :- * - string: strict number- * - array: range of numbers [0,10]- * @see \Codeception\Lib\InnerBrowser::seeNumberOfElements()- */- public function seeNumberOfElements($selector, $expected) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeNumberOfElements', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that the given option is selected.- *- * ``` php- * <?php- * $I->seeOptionIsSelected('#form input[name=payment]', 'Visa');- * ?>- * ```- *- * @param $selector- * @param $optionText- *- * @return mixed- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Lib\InnerBrowser::seeOptionIsSelected()- */- public function canSeeOptionIsSelected($selector, $optionText) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeOptionIsSelected', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that the given option is selected.- *- * ``` php- * <?php- * $I->seeOptionIsSelected('#form input[name=payment]', 'Visa');- * ?>- * ```- *- * @param $selector- * @param $optionText- *- * @return mixed- * @see \Codeception\Lib\InnerBrowser::seeOptionIsSelected()- */- public function seeOptionIsSelected($selector, $optionText) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeOptionIsSelected', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that the given option is not selected.- *- * ``` php- * <?php- * $I->dontSeeOptionIsSelected('#form input[name=payment]', 'Visa');- * ?>- * ```- *- * @param $selector- * @param $optionText- *- * @return mixed- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Lib\InnerBrowser::dontSeeOptionIsSelected()- */- public function cantSeeOptionIsSelected($selector, $optionText) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeOptionIsSelected', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that the given option is not selected.- *- * ``` php- * <?php- * $I->dontSeeOptionIsSelected('#form input[name=payment]', 'Visa');- * ?>- * ```- *- * @param $selector- * @param $optionText- *- * @return mixed- * @see \Codeception\Lib\InnerBrowser::dontSeeOptionIsSelected()- */- public function dontSeeOptionIsSelected($selector, $optionText) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeOptionIsSelected', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Asserts that current page has 404 response status code.- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Lib\InnerBrowser::seePageNotFound()- */- public function canSeePageNotFound() {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seePageNotFound', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Asserts that current page has 404 response status code.- * @see \Codeception\Lib\InnerBrowser::seePageNotFound()- */- public function seePageNotFound() {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seePageNotFound', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that response code is equal to value provided.- *- * @param $code- *- * @return mixed- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Lib\InnerBrowser::seeResponseCodeIs()- */- public function canSeeResponseCodeIs($code) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeResponseCodeIs', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that response code is equal to value provided.- *- * @param $code- *- * @return mixed- * @see \Codeception\Lib\InnerBrowser::seeResponseCodeIs()- */- public function seeResponseCodeIs($code) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeResponseCodeIs', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that the page title contains the given string.- *- * ``` php- * <?php- * $I->seeInTitle('Blog - Post #1');- * ?>- * ```- *- * @param $title- *- * @return mixed- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Lib\InnerBrowser::seeInTitle()- */- public function canSeeInTitle($title) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeInTitle', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that the page title contains the given string.- *- * ``` php- * <?php- * $I->seeInTitle('Blog - Post #1');- * ?>- * ```- *- * @param $title- *- * @return mixed- * @see \Codeception\Lib\InnerBrowser::seeInTitle()- */- public function seeInTitle($title) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInTitle', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that the page title does not contain the given string.- *- * @param $title- *- * @return mixed- * Conditional Assertion: Test won't be stopped on fail- * @see \Codeception\Lib\InnerBrowser::dontSeeInTitle()- */- public function cantSeeInTitle($title) {- return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeInTitle', func_get_args()));- }- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that the page title does not contain the given string.- *- * @param $title- *- * @return mixed- * @see \Codeception\Lib\InnerBrowser::dontSeeInTitle()- */- public function dontSeeInTitle($title) {- return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInTitle', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that two variables are equal.- *- * @param $expected- * @param $actual- * @param string $message- *- * @return mixed- * @see \Codeception\Module\Asserts::assertEquals()- */- public function assertEquals($expected, $actual, $message = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEquals', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that two variables are not equal- *- * @param $expected- * @param $actual- * @param string $message- * @see \Codeception\Module\Asserts::assertNotEquals()- */- public function assertNotEquals($expected, $actual, $message = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEquals', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that two variables are same- *- * @param $expected- * @param $actual- * @param string $message- *- * @return mixed- * @see \Codeception\Module\Asserts::assertSame()- */- public function assertSame($expected, $actual, $message = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertSame', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that two variables are not same- *- * @param $expected- * @param $actual- * @param string $message- * @see \Codeception\Module\Asserts::assertNotSame()- */- public function assertNotSame($expected, $actual, $message = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotSame', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that actual is greater than expected- *- * @param $expected- * @param $actual- * @param string $message- * @see \Codeception\Module\Asserts::assertGreaterThan()- */- public function assertGreaterThan($expected, $actual, $message = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThan', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * @deprecated- * @see \Codeception\Module\Asserts::assertGreaterThen()- */- public function assertGreaterThen($expected, $actual, $message = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThen', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that actual is greater or equal than expected- *- * @param $expected- * @param $actual- * @param string $message- * @see \Codeception\Module\Asserts::assertGreaterThanOrEqual()- */- public function assertGreaterThanOrEqual($expected, $actual, $message = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThanOrEqual', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * @deprecated- * @see \Codeception\Module\Asserts::assertGreaterThenOrEqual()- */- public function assertGreaterThenOrEqual($expected, $actual, $message = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThenOrEqual', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that actual is less than expected- *- * @param $expected- * @param $actual- * @param string $message- * @see \Codeception\Module\Asserts::assertLessThan()- */- public function assertLessThan($expected, $actual, $message = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessThan', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that actual is less or equal than expected- *- * @param $expected- * @param $actual- * @param string $message- * @see \Codeception\Module\Asserts::assertLessThanOrEqual()- */- public function assertLessThanOrEqual($expected, $actual, $message = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessThanOrEqual', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that haystack contains needle- *- * @param $needle- * @param $haystack- * @param string $message- * @see \Codeception\Module\Asserts::assertContains()- */- public function assertContains($needle, $haystack, $message = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertContains', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that haystack doesn't contain needle.- *- * @param $needle- * @param $haystack- * @param string $message- * @see \Codeception\Module\Asserts::assertNotContains()- */- public function assertNotContains($needle, $haystack, $message = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotContains', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that string match with pattern- *- * @param string $pattern- * @param string $string- * @param string $message- * @see \Codeception\Module\Asserts::assertRegExp()- */- public function assertRegExp($pattern, $string, $message = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertRegExp', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that string not match with pattern- *- * @param string $pattern- * @param string $string- * @param string $message- * @see \Codeception\Module\Asserts::assertNotRegExp()- */- public function assertNotRegExp($pattern, $string, $message = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotRegExp', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that variable is empty.- *- * @param $actual- * @param string $message- * @see \Codeception\Module\Asserts::assertEmpty()- */- public function assertEmpty($actual, $message = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEmpty', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that variable is not empty.- *- * @param $actual- * @param string $message- * @see \Codeception\Module\Asserts::assertNotEmpty()- */- public function assertNotEmpty($actual, $message = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEmpty', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that variable is NULL- *- * @param $actual- * @param string $message- * @see \Codeception\Module\Asserts::assertNull()- */- public function assertNull($actual, $message = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNull', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that variable is not NULL- *- * @param $actual- * @param string $message- * @see \Codeception\Module\Asserts::assertNotNull()- */- public function assertNotNull($actual, $message = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotNull', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that condition is positive.- *- * @param $condition- * @param string $message- * @see \Codeception\Module\Asserts::assertTrue()- */- public function assertTrue($condition, $message = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertTrue', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks that condition is negative.- *- * @param $condition- * @param string $message- * @see \Codeception\Module\Asserts::assertFalse()- */- public function assertFalse($condition, $message = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFalse', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks if file exists- *- * @param string $filename- * @param string $message- * @see \Codeception\Module\Asserts::assertFileExists()- */- public function assertFileExists($filename, $message = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileExists', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Checks if file doesn't exists- *- * @param string $filename- * @param string $message- * @see \Codeception\Module\Asserts::assertFileNotExists()- */- public function assertFileNotExists($filename, $message = null) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileNotExists', func_get_args()));- }--- /**- * [!] Method is generated. Documentation taken from corresponding module.- *- * Fails the test with message.- *- * @param $message- * @see \Codeception\Module\Asserts::fail()- */- public function fail($message) {- return $this->getScenario()->runStep(new \Codeception\Step\Action('fail', func_get_args()));- }-}diff --git a/tests/functional.suite.yml b/tests/functional.suite.ymldeleted file mode 100644index f94a08d7ad..0000000000--- a/tests/functional.suite.yml+++ /dev/null@@ -1,11 +0,0 @@-# Codeception Test Suite Configuration-#-# Suite for functional (integration) tests-# Emulate web requests and make application process them-# Include one of framework modules (Symfony2, Yii2, Laravel5) to use it--class_name: FunctionalTester-modules:- enabled:- # add framework module here- - \Helper\Functionaldiff --git a/tests/unit.suite.yml b/tests/unit.suite.ymldeleted file mode 100644index ad6e55bd0e..0000000000--- a/tests/unit.suite.yml+++ /dev/null@@ -1,10 +0,0 @@-# Codeception Test Suite Configuration-#-# Suite for unit (internal) tests.--class_name: UnitTester-modules:- enabled:- - Laravel5- - Asserts- - \Helper\Unitdiff --git a/tests/unit/Models/TransactionTypeTest.php b/tests/unit/Models/TransactionTypeTest.phpdeleted file mode 100644index a93005ae6f..0000000000--- a/tests/unit/Models/TransactionTypeTest.php+++ /dev/null@@ -1,32 +0,0 @@-<?php--namespace FireflyIII\Models;--use TestCase;--class TransactionTypeTest extends TestCase-{- public function testIsWithdrawal()- {- $transactionType = TransactionType::whereType(TransactionType::WITHDRAWAL)->first();- $this->assertTrue($transactionType->isWithdrawal());- }-- public function testIsDeposit()- {- $transactionType = TransactionType::whereType(TransactionType::DEPOSIT)->first();- $this->assertTrue($transactionType->isDeposit());- }-- public function testIsTransfer()- {- $transactionType = TransactionType::whereType(TransactionType::TRANSFER)->first();- $this->assertTrue($transactionType->isTransfer());- }-- public function testIsOpeningBalance()- {- $transactionType = TransactionType::whereType(TransactionType::OPENING_BALANCE)->first();- $this->assertTrue($transactionType->isOpeningBalance());- }-}