Commit Graph

500 Commits

Author SHA1 Message Date
Jonathan Labreuille
0c419cde16 Unit tests (Router\NewsletterTemplates & Router\Segments
- moved json_decode(body) inside NewsletterTemplate->asArray (override)
- updated NewsletterTemplate router accordingly
- finished Segments unit test
2016-02-04 14:36:08 +01:00
Jonathan Labreuille
c2cb88f995 Unit tests fixed + models & routers update 2016-02-04 11:41:05 +01:00
Jonathan Labreuille
a2ef62302f More Unit Tests + Initializer fix
- added unit test for Router\Forms
- updated unit test for Model\Segment to reflect changes
2016-02-02 17:22:11 +01:00
Jonathan Labreuille
4fd0c4b484 Router updates + unit tests + React
- added -f flag to run unit test command in order to fail fast
- pass only id to "$endpoint->get($id)" in React forms instead of array
- updated routers according to the ->get($id) change
- refactored a bit the way form creation works
- added unit tests for Segments router
2016-02-01 11:56:21 +01:00
Jonathan Labreuille
d4623cf763 Router update for Settings and Setup + unit tests 2016-02-01 11:56:21 +01:00
Jonathan Labreuille
bb1cc997cc CustomFields
- renamed form block type "input" to "text" for consistency with React
- updated CustomFields router to comply with main router
- unit tests for CF router
2016-01-29 17:16:24 +01:00
Tautvidas Sipavičius
24f96d9d7d Merge pull request #313 from mailpoet/router_upgrade
Main Router update + Subscribers router update + Unit test
2016-01-29 17:01:21 +02:00
Vlad
2f42f643ab - Fixes message body construction 2016-01-28 22:29:47 -05:00
Jonathan Labreuille
72ad98a77f unit test for router Subscribers 2016-01-28 18:00:55 +01:00
Vlad
f3b9f7be92 - Updates MailPoet mailer to support batch sending
- Fixes message encoding issue
2016-01-28 09:40:57 -05:00
Vlad
c0f98c9ba6 - Moves credentials from mailer tests to ENV file
- Disables send method by default unless enabled in ENV file
2016-01-27 18:36:38 -05:00
Jonathan Labreuille
894a9e8c90 Router\Router is now taking care of outputting JSON
- converted Subscribers Router to return array instead of wp_send_json()
- added unit test for Subscribers Router
2016-01-27 17:23:30 +01:00
Vlad
0776e9ad73 - Adds "reply to" option to all mailers
- Replaces WPMail with Swift using local transport (PHP mail)
- Fixes AmazonSES region naming convention
- Updates tests
2016-01-26 19:08:02 -05:00
Tautvidas Sipavičius
91981cc324 Merge pull request #306 from mailpoet/mailer_cleanup
Removes Mandrill API mailer method
2016-01-26 18:52:10 +02:00
Vlad
d0e770e0fc - Removes Mandrill API mailer method 2016-01-26 09:18:48 -05:00
Vlad
3d6d1a4282 - Disables shortcodes unit test 2016-01-26 09:14:12 -05:00
Vlad
dc3b47db00 - Implements shortcodes
- Updates newsletter router/sending queue worker to use shortcodes
  replacement class
2016-01-26 09:13:29 -05:00
Vlad
f502e0b677 - Implements text rendering
- Updates tests
- Updates newsletter router and sending queue worker to reflect changes to
  the renderer
2016-01-22 22:07:02 -05:00
Tautvidas Sipavičius
da483fb88f Merge pull request #296 from mailpoet/form_custom_fields
Form custom fields
2016-01-22 14:56:16 +02:00
Jonathan Labreuille
8072b162d4 Unit tests for new methods in model subscriber 2016-01-22 11:28:26 +01:00
Vlad
6a9313107c - Fixes unit test 2016-01-21 12:21:22 -05:00
Jonathan Labreuille
bb77134224 Unit tests for Settings getValue/setValue
- fixed typo in Shortcodes
- changed for -> foreach
2016-01-15 15:50:23 +01:00
Jonathan Labreuille
138a631ed7 Fix unit tests + enable signup confirmation by default
- minor cleanup
2016-01-14 15:57:46 +01:00
Jonathan Labreuille
fcea9adbd9 Unit tests + minor bugfix
- added unit tests for new methods in Models\Subscriber
- removed check for "isNew()". It was an unecessary check. Also isNew() always returns false once the new model is saved.
2016-01-13 11:54:23 +01:00
Tautvidas Sipavičius
b7cfa549d5 Change newsletter and template saving to JSON encode body separately 2016-01-11 18:27:30 +02:00
Tautvidas Sipavičius
493fd01754 Merge pull request #285 from mailpoet/import_export_fix
Import export fix
2016-01-08 19:21:56 +02:00
Tautvidas Sipavičius
9ced4b1757 Fix export test after temp URL changed 2016-01-08 19:21:32 +02:00
Vlad
0c73c0fadc - Resolves issues identified by @rafaehlers during testing 2016-01-07 22:47:59 -05:00
Vlad
d1df94c759 - Addresses issues identified during code review 2016-01-07 17:24:46 -05:00
Vlad
0192934e65 - Removes debug leftovers 2016-01-07 17:24:42 -05:00
Vlad
2793e74858 - Rewrites the rendering engine
- Updates tests
Closes #280
2016-01-07 17:24:32 -05:00
Vlad
0dbe04c3f8 - Addresses issues identified during code review 2016-01-06 19:19:06 -05:00
Vlad
f1bf2bb097 - Refactors Mailer class
- Refactors SendingQueue worker class
- Adds Maier router with a send() method + ability to specify sending method
- Updates tests
- Introduces 'stopping' and 'starting' cron states
- Improves cron control mechanism
Closes #276
2016-01-05 10:34:57 -05:00
Tautvidas Sipavičius
132e6d3342 Rename Wordpress component to Communication component, fix preview JS
syntax
2015-12-17 12:40:26 +02:00
Jonathan Labreuille
84ec0de3cd Unit tests + Welcome page
- fixed unit tests
- commented out failing tests that require changes in the code
- added new welcome page
2015-12-11 17:17:59 +01:00
MrCasual
c2fde308cb - Renames and updates sending queue worker
- Updates mailer router's send() method
2015-12-04 12:31:54 -05:00
MrCasual
9b011c0281 - Places supervisor/daemon/worker under the new Cron class
- Updates endpoints
- Integrates queue worker with MailPoet mailer
- Fixes script activation check logic
2015-12-03 22:01:18 -05:00
Tautvidas Sipavičius
8461c13532 Include thumbnail on saved templates, add another sample template 2015-11-30 18:05:10 +02:00
MrCasual
7d95b38dc4 - Renames/refactors Import and Export classes/views/JS
- Updates Import and Export to ignore trashed subscribers
- Updates tests
Closes #245
2015-11-26 20:48:19 -05:00
Marco
fbc6f54ddc Merge pull request #230 from mailpoet/export
Export
2015-11-19 10:35:27 +01:00
MrCasual
aa93c7349f - Rebases master
- Adds tests for all Export class methods
Closes #221
2015-11-18 22:14:48 -05:00
MrCasual
82cf4a28fd - Updates export tests 2015-11-18 14:42:28 -05:00
MrCasual
e3de3a123a - Corrects exported subscriber count
- Properly exports subscribers not in any list
- Adds test for export class constructor method
Resolves #221
2015-11-18 14:42:27 -05:00
Tautvidas Sipavičius
080ae88a04 Fix Posts block tests 2015-11-17 16:31:57 +02:00
MrCasual
c96ac06423 - Moves ImportExport under Subscribers namespace
- Updates tests
2015-11-13 12:46:54 -05:00
MrCasual
0017df1c2d - Work-in-progress on the UI 2015-11-13 12:25:32 -05:00
MrCasual
0fedd1779f - Moves Import and Export under ImportExport namespace
- Cretes a single BootStrapMenu class for Import and Export
- Updates tests
- Adds 2 new methods to Segments model
2015-11-13 12:25:31 -05:00
Marco
bde78b607b Merge pull request #218 from mailpoet/listings_bugfix
Listings bugfixes & Welcome page
2015-11-13 16:01:23 +01:00
Jonathan Labreuille
162859529e reinstated removed tests 2015-11-13 13:56:59 +01:00
Jonathan Labreuille
10a20935c3 cleanup tests 2015-11-12 14:11:27 +01:00