fixed conflict and removed test in initializer

This commit is contained in:
Jonathan Labreuille
2015-07-29 16:56:23 +02:00
9 changed files with 192 additions and 339 deletions

217
composer.lock generated
View File

@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"hash": "5961fe00f44e01c734f498cfbdf10f48", "hash": "ca23a0ffe44c50818331ee31a87b12d7",
"packages": [ "packages": [
{ {
"name": "cerdic/css-tidy", "name": "cerdic/css-tidy",
@@ -39,221 +39,6 @@
"description": "CSSTidy is a CSS minifier", "description": "CSSTidy is a CSS minifier",
"time": "2014-10-26 15:28:55" "time": "2014-10-26 15:28:55"
}, },
{
"name": "pear-pear.php.net/Archive_Tar",
"version": "1.4.0",
"dist": {
"type": "file",
"url": "http://pear.php.net/get/Archive_Tar-1.4.0.tgz",
"reference": null,
"shasum": null
},
"require": {
"php": ">=5.2.0.0"
},
"replace": {
"pear-pear/archive_tar": "== 1.4.0.0"
},
"type": "pear-library",
"autoload": {
"classmap": [
""
]
},
"include-path": [
"/"
],
"license": [
"New BSD License"
],
"description": "This class provides handling of tar files in PHP.\nIt supports creating, listing, extracting and adding to tar files.\nGzip support is available if PHP has the zlib extension built-in or\nloaded. Bz2 compression is also supported with the bz2 extension loaded."
},
{
"name": "pear-pear.php.net/Console_Getopt",
"version": "1.4.1",
"dist": {
"type": "file",
"url": "http://pear.php.net/get/Console_Getopt-1.4.1.tgz",
"reference": null,
"shasum": null
},
"require": {
"php": ">=5.4.0.0"
},
"replace": {
"pear-pear/console_getopt": "== 1.4.1.0"
},
"type": "pear-library",
"autoload": {
"classmap": [
""
]
},
"include-path": [
"/"
],
"license": [
"BSD-2-Clause"
],
"description": "This is a PHP implementation of \"getopt\" supporting both\nshort and long options."
},
{
"name": "pear-pear.php.net/Net_POP3",
"version": "1.3.8",
"dist": {
"type": "file",
"url": "http://pear.php.net/get/Net_POP3-1.3.8.tgz",
"reference": null,
"shasum": null
},
"require": {
"pear-pear.php.net/net_socket": ">=1.0.0.0",
"php": ">=4.0.0.0"
},
"replace": {
"pear-pear/net_pop3": "== 1.3.8.0"
},
"type": "pear-library",
"autoload": {
"classmap": [
""
]
},
"include-path": [
"/"
],
"license": [
"BSD"
],
"description": "Provides a POP3 class to access POP3 server. Support all POP3 commands\n including UIDL listings, APOP authentication, DIGEST-MD5 and CRAM-MD5\n using optional Auth_SASL package"
},
{
"name": "pear-pear.php.net/Net_Socket",
"version": "1.0.14",
"dist": {
"type": "file",
"url": "http://pear.php.net/get/Net_Socket-1.0.14.tgz",
"reference": null,
"shasum": null
},
"require": {
"php": ">=4.3.0.0"
},
"replace": {
"pear-pear/net_socket": "== 1.0.14.0"
},
"type": "pear-library",
"autoload": {
"classmap": [
""
]
},
"include-path": [
"/"
],
"license": [
"PHP License"
],
"description": "Net_Socket is a class interface to TCP sockets. It provides blocking\n and non-blocking operation, with different reading and writing modes\n (byte-wise, block-wise, line-wise and special formats like network\n byte-order ip addresses)."
},
{
"name": "pear-pear.php.net/PEAR",
"version": "1.9.5",
"dist": {
"type": "file",
"url": "http://pear.php.net/get/PEAR-1.9.5.tgz",
"reference": null,
"shasum": null
},
"require": {
"ext-pcre": "*",
"ext-xml": "*",
"pear-pear.php.net/archive_tar": ">=1.3.11.0",
"pear-pear.php.net/console_getopt": ">=1.2.0.0",
"pear-pear.php.net/structures_graph": ">=1.0.2.0",
"pear-pear.php.net/xml_util": ">=1.2.0.0",
"php": ">=4.4.0.0,!=5.0.0.0,!=5.1.0.0,!=5.1.1.0,!=5.1.2.0,!=5.1.3.0,!=5.1.4.0,!=5.1.5.0"
},
"conflict": {
"pear-pear.php.net/pear_frontend_gtk": "<0.4.0.0",
"pear-pear.php.net/pear_frontend_web": "<=0.4.0.0"
},
"replace": {
"pear-pear/pear": "== 1.9.5.0"
},
"type": "pear-library",
"autoload": {
"classmap": [
""
]
},
"include-path": [
"/"
],
"license": [
"New BSD License"
],
"description": "The PEAR package contains:\n * the PEAR installer, for creating, distributing\n and installing packages\n * the PEAR_Exception PHP5 error handling mechanism\n * the PEAR_ErrorStack advanced error handling mechanism\n * the PEAR_Error error handling mechanism\n * the OS_Guess class for retrieving info about the OS\n where PHP is running on\n * the System class for quick handling of common operations\n with files and directories\n * the PEAR base class\n Features in a nutshell:\n * full support for channels\n * pre-download dependency validation\n * new package.xml 2.0 format allows tremendous flexibility while maintaining BC\n * support for optional dependency groups and limited support for sub-packaging\n * robust dependency support\n * full dependency validation on uninstall\n * remote install for hosts with only ftp access - no more problems with\n restricted host installation\n * full support for mirroring\n * support for bundling several packages into a single tarball\n * support for static dependencies on a url-based package\n * support for custom file roles and installation tasks"
},
{
"name": "pear-pear.php.net/Structures_Graph",
"version": "1.1.1",
"dist": {
"type": "file",
"url": "http://pear.php.net/get/Structures_Graph-1.1.1.tgz",
"reference": null,
"shasum": null
},
"require": {
"php": ">=5.3.0.0"
},
"replace": {
"pear-pear/structures_graph": "== 1.1.1.0"
},
"type": "pear-library",
"autoload": {
"classmap": [
""
]
},
"include-path": [
"/"
],
"license": [
"LGPL-3.0+"
],
"description": "Structures_Graph is a package for creating and manipulating graph datastructures. It allows building of directed\nand undirected graphs, with data and metadata stored in nodes. The library provides functions for graph traversing\nas well as for characteristic extraction from the graph topology."
},
{
"name": "pear-pear.php.net/XML_Util",
"version": "1.3.0",
"dist": {
"type": "file",
"url": "http://pear.php.net/get/XML_Util-1.3.0.tgz",
"reference": null,
"shasum": null
},
"require": {
"ext-pcre": "*",
"php": ">=5.3.0.0"
},
"replace": {
"pear-pear/xml_util": "== 1.3.0.0"
},
"type": "pear-library",
"autoload": {
"classmap": [
""
]
},
"include-path": [
"/"
],
"license": [
"BSD License"
],
"description": "Selection of methods that are often needed when working with XML documents. Functionality includes creating of attribute lists from arrays, creation of tags, validation of XML names and more."
},
{ {
"name": "phpmailer/phpmailer", "name": "phpmailer/phpmailer",
"version": "v5.2.10", "version": "v5.2.10",

19
lib/config/env.php Normal file
View File

@@ -0,0 +1,19 @@
<?php
namespace MailPoet\Config;
if(!defined('ABSPATH')) exit;
class Env {
public static $db_prefix;
public static $db_host;
public static $db_username;
public static $db_password;
public static function init() {
global $wpdb;
self::$db_prefix = $wpdb->prefix;
self::$db_host = DB_HOST;
self::$db_username = DB_USER;
self::$db_password = DB_PASSWORD;
}
}

View File

@@ -6,14 +6,6 @@ use MailPoet\WP;
if(!defined('ABSPATH')) exit; if(!defined('ABSPATH')) exit;
/*
this is a comment
*/
// another comment
$var = __('super long string
that takes multiple lines
and takes 3 lines');
class Initializer { class Initializer {
public $version; public $version;
@@ -23,12 +15,11 @@ class Initializer {
public $assets_path; public $assets_path;
public $assets_url; public $assets_url;
public function __construct($params = array( public function __construct($params = array(
'file' => '', 'file' => '',
'version' => '1.0.0' 'version' => '1.0.0'
)) { )) {
Env::init();
$this->data = array(); $this->data = array();
$this->version = $params['version']; $this->version = $params['version'];
$this->shortname = 'wysija-newsletters'; $this->shortname = 'wysija-newsletters';
@@ -343,4 +334,4 @@ class Initializer {
$this->shortname . '_version', $this->version $this->shortname . '_version', $this->version
); );
} }
} }

9
lib/config/migrator.php Normal file
View File

@@ -0,0 +1,9 @@
<?php
namespace MailPoet\Config;
if(!defined('ABSPATH')) exit;
class Migrator {
function __construct() {
}
}

View File

@@ -2,6 +2,8 @@
namespace MailPoet\Config; namespace MailPoet\Config;
use \MailPoet\WP; use \MailPoet\WP;
if(!defined('ABSPATH')) exit;
class Settings { class Settings {
function __construct() { function __construct() {

View File

@@ -15,7 +15,7 @@ trait AcceptanceTesterActions
*/ */
abstract protected function getScenario(); abstract protected function getScenario();
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -43,7 +43,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Condition('amOnSubdomain', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Condition('amOnSubdomain', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -64,7 +64,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('makeScreenshot', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('makeScreenshot', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -84,7 +84,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('resizeWindow', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('resizeWindow', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -127,7 +127,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeCookie', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeCookie', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -160,7 +160,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeCookie', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeCookie', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -184,7 +184,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('setCookie', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('setCookie', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -201,7 +201,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('resetCookie', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('resetCookie', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -218,7 +218,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('grabCookie', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('grabCookie', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -236,7 +236,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Condition('amOnUrl', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Condition('amOnUrl', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -258,7 +258,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Condition('amOnPage', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Condition('amOnPage', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -303,7 +303,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('see', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Assertion('see', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -348,7 +348,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSee', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSee', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -383,7 +383,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInPageSource', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInPageSource', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -408,7 +408,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInPageSource', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInPageSource', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -447,7 +447,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('click', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('click', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -490,7 +490,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeLink', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeLink', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -533,7 +533,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeLink', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeLink', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -576,7 +576,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInCurrentUrl', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInCurrentUrl', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -617,7 +617,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeCurrentUrlEquals', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeCurrentUrlEquals', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -656,7 +656,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeCurrentUrlMatches', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeCurrentUrlMatches', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -693,7 +693,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInCurrentUrl', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInCurrentUrl', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -734,7 +734,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeCurrentUrlEquals', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeCurrentUrlEquals', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -773,7 +773,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeCurrentUrlMatches', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeCurrentUrlMatches', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -797,7 +797,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('grabFromCurrentUrl', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('grabFromCurrentUrl', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -838,7 +838,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeCheckboxIsChecked', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeCheckboxIsChecked', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -877,7 +877,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeCheckboxIsChecked', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeCheckboxIsChecked', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -928,7 +928,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInField', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInField', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -979,13 +979,13 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInField', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInField', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] 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 * Checks if the array of form parameters (name => value) are set on the form matched with the
* passed selector. * passed selector.
* *
* ``` php * ``` php
* <?php * <?php
* $I->seeInFormFields('form[name=myform]', [ * $I->seeInFormFields('form[name=myform]', [
@@ -994,10 +994,10 @@ trait AcceptanceTesterActions
* ]); * ]);
* ?> * ?>
* ``` * ```
* *
* For multi-select elements, or to check values of multiple elements with the same name, an * For multi-select elements, or to check values of multiple elements with the same name, an
* array may be passed: * array may be passed:
* *
* ``` php * ``` php
* <?php * <?php
* $I->seeInFormFields('.form-class', [ * $I->seeInFormFields('.form-class', [
@@ -1014,7 +1014,7 @@ trait AcceptanceTesterActions
* ``` * ```
* *
* Additionally, checkbox values can be checked with a boolean. * Additionally, checkbox values can be checked with a boolean.
* *
* ``` php * ``` php
* <?php * <?php
* $I->seeInFormFields('#form-id', [ * $I->seeInFormFields('#form-id', [
@@ -1023,9 +1023,9 @@ trait AcceptanceTesterActions
* ]); * ]);
* ?> * ?>
* ``` * ```
* *
* Pair this with submitForm for quick testing magic. * Pair this with submitForm for quick testing magic.
* *
* ``` php * ``` php
* <?php * <?php
* $form = [ * $form = [
@@ -1039,7 +1039,7 @@ trait AcceptanceTesterActions
* $I->seeInFormFields('//form[@id=my-form]', $form); * $I->seeInFormFields('//form[@id=my-form]', $form);
* ?> * ?>
* ``` * ```
* *
* @param $formSelector * @param $formSelector
* @param $params * @param $params
* Conditional Assertion: Test won't be stopped on fail * Conditional Assertion: Test won't be stopped on fail
@@ -1053,7 +1053,7 @@ trait AcceptanceTesterActions
* *
* Checks if the array of form parameters (name => value) are set on the form matched with the * Checks if the array of form parameters (name => value) are set on the form matched with the
* passed selector. * passed selector.
* *
* ``` php * ``` php
* <?php * <?php
* $I->seeInFormFields('form[name=myform]', [ * $I->seeInFormFields('form[name=myform]', [
@@ -1062,10 +1062,10 @@ trait AcceptanceTesterActions
* ]); * ]);
* ?> * ?>
* ``` * ```
* *
* For multi-select elements, or to check values of multiple elements with the same name, an * For multi-select elements, or to check values of multiple elements with the same name, an
* array may be passed: * array may be passed:
* *
* ``` php * ``` php
* <?php * <?php
* $I->seeInFormFields('.form-class', [ * $I->seeInFormFields('.form-class', [
@@ -1082,7 +1082,7 @@ trait AcceptanceTesterActions
* ``` * ```
* *
* Additionally, checkbox values can be checked with a boolean. * Additionally, checkbox values can be checked with a boolean.
* *
* ``` php * ``` php
* <?php * <?php
* $I->seeInFormFields('#form-id', [ * $I->seeInFormFields('#form-id', [
@@ -1091,9 +1091,9 @@ trait AcceptanceTesterActions
* ]); * ]);
* ?> * ?>
* ``` * ```
* *
* Pair this with submitForm for quick testing magic. * Pair this with submitForm for quick testing magic.
* *
* ``` php * ``` php
* <?php * <?php
* $form = [ * $form = [
@@ -1107,7 +1107,7 @@ trait AcceptanceTesterActions
* $I->seeInFormFields('//form[@id=my-form]', $form); * $I->seeInFormFields('//form[@id=my-form]', $form);
* ?> * ?>
* ``` * ```
* *
* @param $formSelector * @param $formSelector
* @param $params * @param $params
* @see \Codeception\Module\WebDriver::seeInFormFields() * @see \Codeception\Module\WebDriver::seeInFormFields()
@@ -1116,13 +1116,13 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInFormFields', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInFormFields', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] 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 * Checks if the array of form parameters (name => value) are not set on the form matched with
* the passed selector. * the passed selector.
* *
* ``` php * ``` php
* <?php * <?php
* $I->dontSeeInFormFields('form[name=myform]', [ * $I->dontSeeInFormFields('form[name=myform]', [
@@ -1131,10 +1131,10 @@ trait AcceptanceTesterActions
* ]); * ]);
* ?> * ?>
* ``` * ```
* *
* To check that an element hasn't been assigned any one of many values, an array can be passed * To check that an element hasn't been assigned any one of many values, an array can be passed
* as the value: * as the value:
* *
* ``` php * ``` php
* <?php * <?php
* $I->dontSeeInFormFields('.form-class', [ * $I->dontSeeInFormFields('.form-class', [
@@ -1147,7 +1147,7 @@ trait AcceptanceTesterActions
* ``` * ```
* *
* Additionally, checkbox values can be checked with a boolean. * Additionally, checkbox values can be checked with a boolean.
* *
* ``` php * ``` php
* <?php * <?php
* $I->dontSeeInFormFields('#form-id', [ * $I->dontSeeInFormFields('#form-id', [
@@ -1156,7 +1156,7 @@ trait AcceptanceTesterActions
* ]); * ]);
* ?> * ?>
* ``` * ```
* *
* @param $formSelector * @param $formSelector
* @param $params * @param $params
* Conditional Assertion: Test won't be stopped on fail * Conditional Assertion: Test won't be stopped on fail
@@ -1170,7 +1170,7 @@ trait AcceptanceTesterActions
* *
* Checks if the array of form parameters (name => value) are not set on the form matched with * Checks if the array of form parameters (name => value) are not set on the form matched with
* the passed selector. * the passed selector.
* *
* ``` php * ``` php
* <?php * <?php
* $I->dontSeeInFormFields('form[name=myform]', [ * $I->dontSeeInFormFields('form[name=myform]', [
@@ -1179,10 +1179,10 @@ trait AcceptanceTesterActions
* ]); * ]);
* ?> * ?>
* ``` * ```
* *
* To check that an element hasn't been assigned any one of many values, an array can be passed * To check that an element hasn't been assigned any one of many values, an array can be passed
* as the value: * as the value:
* *
* ``` php * ``` php
* <?php * <?php
* $I->dontSeeInFormFields('.form-class', [ * $I->dontSeeInFormFields('.form-class', [
@@ -1195,7 +1195,7 @@ trait AcceptanceTesterActions
* ``` * ```
* *
* Additionally, checkbox values can be checked with a boolean. * Additionally, checkbox values can be checked with a boolean.
* *
* ``` php * ``` php
* <?php * <?php
* $I->dontSeeInFormFields('#form-id', [ * $I->dontSeeInFormFields('#form-id', [
@@ -1204,7 +1204,7 @@ trait AcceptanceTesterActions
* ]); * ]);
* ?> * ?>
* ``` * ```
* *
* @param $formSelector * @param $formSelector
* @param $params * @param $params
* @see \Codeception\Module\WebDriver::dontSeeInFormFields() * @see \Codeception\Module\WebDriver::dontSeeInFormFields()
@@ -1213,7 +1213,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInFormFields', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInFormFields', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1243,7 +1243,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('selectOption', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('selectOption', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1254,7 +1254,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('unselectOption', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('unselectOption', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1273,7 +1273,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('checkOption', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('checkOption', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1292,7 +1292,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('uncheckOption', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('uncheckOption', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1313,7 +1313,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('fillField', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('fillField', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1334,7 +1334,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('attachFile', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('attachFile', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1347,7 +1347,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('getVisibleText', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('getVisibleText', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1371,7 +1371,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('grabTextFrom', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('grabTextFrom', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1395,7 +1395,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('grabAttributeFrom', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('grabAttributeFrom', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1420,7 +1420,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('grabValueFrom', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('grabValueFrom', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1431,7 +1431,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('grabMultiple', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('grabMultiple', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1486,7 +1486,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeElement', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeElement', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1533,7 +1533,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeElement', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeElement', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1570,7 +1570,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeElementInDOM', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeElementInDOM', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1595,7 +1595,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeElementInDOM', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeElementInDOM', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1638,7 +1638,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeNumberOfElements', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeNumberOfElements', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1681,7 +1681,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeOptionIsSelected', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeOptionIsSelected', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1724,7 +1724,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeOptionIsSelected', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeOptionIsSelected', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1765,7 +1765,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInTitle', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInTitle', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1794,7 +1794,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInTitle', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInTitle', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1806,7 +1806,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('acceptPopup', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('acceptPopup', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1817,7 +1817,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('cancelPopup', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('cancelPopup', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1842,7 +1842,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInPopup', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInPopup', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1855,7 +1855,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('typeInPopup', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('typeInPopup', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1866,7 +1866,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('reloadPage', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('reloadPage', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1877,7 +1877,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('moveBack', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('moveBack', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1888,7 +1888,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('moveForward', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('moveForward', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -1956,13 +1956,13 @@ trait AcceptanceTesterActions
* ``` * ```
* Note that "2" will be the submitted value for the "plan" field, as it is * Note that "2" will be the submitted value for the "plan" field, as it is
* the selected option. * the selected option.
* *
* Also note that this differs from PhpBrowser, in that * Also note that this differs from PhpBrowser, in that
* ```'user' => [ 'login' => 'Davert' ]``` is not supported at the moment. * ```'user' => [ 'login' => 'Davert' ]``` is not supported at the moment.
* Named array keys *must* be included in the name as above. * Named array keys *must* be included in the name as above.
* *
* Pair this with seeInFormFields for quick testing magic. * Pair this with seeInFormFields for quick testing magic.
* *
* ``` php * ``` php
* <?php * <?php
* $form = [ * $form = [
@@ -2005,20 +2005,20 @@ trait AcceptanceTesterActions
* *
* Mixing string and boolean values for a checkbox's value is not supported * Mixing string and boolean values for a checkbox's value is not supported
* and may produce unexpected results. * and may produce unexpected results.
* *
* Field names ending in "[]" must be passed without the trailing square * Field names ending in "[]" must be passed without the trailing square
* bracket characters, and must contain an array for its value. This allows * bracket characters, and must contain an array for its value. This allows
* submitting multiple values with the same name, consider: * submitting multiple values with the same name, consider:
* *
* ```php * ```php
* $I->submitForm('#my-form', [ * $I->submitForm('#my-form', [
* 'field[]' => 'value', * 'field[]' => 'value',
* 'field[]' => 'another value', // 'field[]' is already a defined key * 'field[]' => 'another value', // 'field[]' is already a defined key
* ]); * ]);
* ``` * ```
* *
* The solution is to pass an array value: * The solution is to pass an array value:
* *
* ```php * ```php
* // this way both values are submitted * // this way both values are submitted
* $I->submitForm('#my-form', [ * $I->submitForm('#my-form', [
@@ -2037,7 +2037,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('submitForm', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('submitForm', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -2063,7 +2063,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('waitForElementChange', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('waitForElementChange', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -2086,7 +2086,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('waitForElement', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('waitForElement', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -2109,7 +2109,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('waitForElementVisible', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('waitForElementVisible', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -2131,7 +2131,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('waitForElementNotVisible', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('waitForElementNotVisible', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -2156,7 +2156,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('waitForText', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('waitForText', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -2170,7 +2170,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('wait', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('wait', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -2194,7 +2194,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('executeInSelenium', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('executeInSelenium', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -2236,7 +2236,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('switchToWindow', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('switchToWindow', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -2264,7 +2264,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('switchToIFrame', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('switchToIFrame', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -2286,7 +2286,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('waitForJS', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('waitForJS', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -2308,7 +2308,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('executeJS', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('executeJS', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -2319,7 +2319,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('maximizeWindow', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('maximizeWindow', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -2339,7 +2339,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('dragAndDrop', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('dragAndDrop', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -2364,7 +2364,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('moveMouseOver', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('moveMouseOver', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -2378,7 +2378,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('clickWithRightButton', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('clickWithRightButton', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -2392,7 +2392,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('pauseExecution', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('pauseExecution', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -2406,7 +2406,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('doubleClick', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('doubleClick', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -2435,7 +2435,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('pressKey', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('pressKey', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -2458,7 +2458,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('appendField', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('appendField', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *
@@ -2496,7 +2496,7 @@ trait AcceptanceTesterActions
return $this->getScenario()->runStep(new \Codeception\Step\Action('saveSessionSnapshot', func_get_args())); return $this->getScenario()->runStep(new \Codeception\Step\Action('saveSessionSnapshot', func_get_args()));
} }
/** /**
* [!] Method is generated. Documentation taken from corresponding module. * [!] Method is generated. Documentation taken from corresponding module.
* *

30
tests/unit/EnvCest.php Normal file
View File

@@ -0,0 +1,30 @@
<?php
use \UnitTester;
use \MailPoet\Config\Env;
class EnvCest {
public function _before() {
Env::init();
}
public function itCanReturnTheDbPrefix() {
global $wpdb;
$db_prefix = $wpdb->prefix;
expect(Env::$db_prefix)->equals($db_prefix);
}
public function itCanReturnTheDbHost() {
expect(Env::$db_host)->equals(DB_HOST);
}
public function itCanReturnTheDbUser() {
expect(Env::$db_username)->equals(DB_USER);
}
public function itCanReturnTheDbPassword() {
expect(Env::$db_password)->equals(DB_PASSWORD);
}
public function _after() {
}
}

View File

@@ -0,0 +1,15 @@
<?php
use \UnitTester;
use \MailPoet\Config\Migrator;
class MigratorCest {
public function _before() {
$migrator = new Migrator();
}
public function itCanBeCreated() {
}
public function _after() {
}
}

View File

@@ -7,4 +7,6 @@ if($wordpress_path) {
} }
} else { } else {
throw new Exception("You need to specify the path to your WordPress installation\n`WP_TEST_PATH` in your .env file"); throw new Exception("You need to specify the path to your WordPress installation\n`WP_TEST_PATH` in your .env file");
} }
\MailPoet\Config\Env::init();