Commit Graph

15 Commits

Author SHA1 Message Date
jeffreyguo
0bd8033cb0 Add new step to click the http link address in email 2016-08-23 13:25:02 +12:00
Damian Mooyman
1eb1004957
Convert to PSR-2 standard
Enforce PHPCS checking
2016-08-10 13:56:30 +12:00
Ingo Schommer
350392148f Remove Behat-related code dependant on PHPUnit 3.x
We've upgraded SilverStripe core to PHPUnit 4.x now, and the Functions.php has moved locations.
Since all custom contexts either use one of these contexts, or extend off SilverStripeContext,
we can be certain that the required assertions are automatically included for custom contexts,
no need to duplicate the require_once() calls.

Note that Behat 3.x suggests using static methods on a class, e.g. PHPUnit_Framework_Assert::assertSame (see http://docs.behat.org/en/master/quick_intro.html).
This seems quite verbose, and increases the upgrade burden on any project using Behat.
2016-02-24 19:50:47 +13:00
Ingo Schommer
1062eb2910 Merge pull request #87 from jeffreyguo/pulls/email-plaintext
added step definition to check email contains a plain text
2016-01-08 10:44:22 +13:00
Jeffrey Guo
64c4819e68 make matched email simple 2015-08-06 14:42:02 +12:00
Jeffrey Guo
117c1ef662 email contains plain text 2015-07-02 14:12:10 +12:00
Jeffrey Guo
9a51b32196 Updated and added new step to check the email contains text
add text to readme for pull request 3635 in framework
2014-11-27 17:58:11 +13:00
Jeffrey Guo
29d99e884f add new step definition to identify multiple emails by title 2014-05-01 10:28:20 +12:00
Ingo Schommer
ca455423ef Changes required for persisting state directly on disk
applyState() used to persist in memory, which could lead
to outdated state depending on execution flow between CLI
and web requests. Since state is now in a JSON object,
it also fixes the array access.
2014-03-01 18:26:21 +13:00
Ingo Schommer
a0517d7680 Better email assertions 2014-02-27 23:02:43 +13:00
Ingo Schommer
d09f2353e6 Negation for email assertions 2014-02-26 14:25:53 +13:00
Ingo Schommer
58a9d59e7f More flexible EmailContext 2013-12-13 17:52:42 +01:00
Ingo Schommer
4aef64a789 Fixed email link step quoting and selection 2013-10-22 00:04:25 +02:00
Ingo Schommer
3928919964 Using 3.1 compatible Config API for setup
Avoids deprecation notices when testing against master
2013-06-19 12:24:11 +02:00
Ingo Schommer
6c9be905f9 NEW Email testing 2012-12-19 15:56:20 +01:00