marco
5cc9c1c6de
Tests cleanup.
2015-08-20 00:31:42 +02:00
marco
e386c3aa38
Cleanup tests.
2015-08-20 00:21:10 +02:00
marco
ce730d7c3b
Settings router.
...
Here's a simple settings router. the createOrUpdate method lives
in the model, and by default all models will return true on save
or false if save went wrong.
2015-08-19 23:55:30 +02:00
Jonathan Labreuille
bc65836c31
Webpack refactor
...
- added JSX support (webpack + robofile
- added public.js bundle
- refactored webpack config for clarity
- added settings.jsx form example
- fixed acceptance test failing on login
2015-08-19 19:29:11 +02:00
marco
ada1bfdcd9
Merge branch 'new_pages'
2015-08-18 17:40:26 +02:00
marco
bb6abf3c7d
Newsletters page, with test.
2015-08-18 17:07:14 +02:00
marco
347706e119
Added Subscribers empty page, with test.
2015-08-18 16:57:13 +02:00
Laurent Szyster
b0f7e44a68
#65 fixing MailerCest::itCanGenerateACorrectMessage
2015-08-18 16:35:48 +02:00
Marco
fd0cc96fb2
Merge pull request #70 from mailpoet/first_mailer
...
A first Mailer for the Bridge
2015-08-18 16:27:40 +02:00
Laurent Szyster
7da1cb9f5b
#65 fix and test Marco's refactoring
2015-08-18 09:23:35 +02:00
marco
a84501024a
Refactor mailer.
2015-08-17 20:20:36 +02:00
Vlad
3af24f9877
Reverted back to Model class
2015-08-17 17:37:43 +00:00
MrCasual
dd8f704037
Merge remote-tracking branch 'origin/master' into newsletter_model
2015-08-17 13:35:38 -04:00
marco
653aa9be8f
Remove broken test, we don't have static CSS anymore.
2015-08-17 19:07:17 +02:00
MrCasual
14fdfaed86
Fixed formatting issues as per Marco's remarks
2015-08-17 09:40:57 -04:00
Laurent Szyster
ffc180eac8
#65 test the generateMessage method; test with more than one subscribers
2015-08-17 14:08:31 +02:00
Laurent Szyster
f78ab1c44b
#65 renamed the generateMessage method; simplify the subscribers property; removed the handle method
2015-08-17 10:33:22 +02:00
Laurent Szyster
32f01272f1
#65 a first Mailer for the Bridge, with a minimal test
2015-08-14 16:29:02 +02:00
Vlad
78b5791a46
- Added 'Newsletters' model and wrote tests
...
- Fixed some formatting in unit tests
Closes #68
2015-08-14 13:31:45 +00:00
MrCasual
9c80429d0d
Merge master/resolved conflicts
2015-08-13 12:26:40 -04:00
marco
ed3e3b0eb8
Fix indentation.
2015-08-13 18:18:12 +02:00
marco
3183e34afc
Fix indentation and naming on Setting test.
2015-08-13 18:11:14 +02:00
marco
1202032ab6
Fix function and map when destroying models.
2015-08-13 18:07:36 +02:00
marco
b72db327f7
Fix error on test:all command.
2015-08-13 17:42:24 +02:00
Vlad
304c114dd3
Merge remote-tracking branch 'origin/master' into models_validation
...
Conflicts:
lib/Models/Setting.php
lib/Models/Subscriber.php
tests/unit/Models/SettingCest.php
tests/unit/Models/SubscriberCest.php
2015-08-13 14:04:27 +00:00
MrCasual
5d1b8524ea
Added Laurent's tests/model save() method
2015-08-13 09:58:41 -04:00
Jonathan Labreuille
ca45214a64
fixed dkim unit test
2015-08-13 13:09:12 +02:00
Vlad
c5f67cb371
- Database cleanup uses Models
...
- Formatted code as per Marco's comments
2015-08-12 22:48:42 +00:00
marco
d5cd2b6bd9
Tests must test created_at and updated_at behavior.
2015-08-12 18:40:39 +02:00
Vlad
820913156b
Simplified database cleanup
2015-08-12 15:41:57 +00:00
Vlad
2856a08cdc
- Made changes as per Marco's comments in #54
...
- Implemented database cleanup for tests. Closes #56
2015-08-12 15:36:56 +00:00
marco
5aa7e20695
Indentation.
2015-08-12 16:52:08 +02:00
marco
d5593b770b
REmove old initialization code in Subscriber test.
2015-08-12 16:50:55 +02:00
marco
82c9c33b58
Methods declaration syntax.
2015-08-12 16:49:58 +02:00
Laurent Szyster
fcabee0749
#40 splitted the test in two; added test for Setting too
2015-08-12 09:54:20 +02:00
Vlad
12bead358c
- Added Sudzy composer dependency for model validation
...
- All models now extend a generic Model class that extends Sudzy
- Wrote tests for Subscriber and Setting model validation
- Rewrote model tests to make sure they look the same
- Updated both tests with cleanup logic in the beginning
- Added test:unit-single method to Robo for selective unit testing
Closes #54
2015-08-11 23:52:00 +00:00
Laurent Szyster
8d50141a49
#40 findOne returns an empty object when none found
2015-08-11 16:54:07 +02:00
Laurent Szyster
236f324f6d
Merge branch 'master' of github.com:mailpoet/mailpoet into issue-40
2015-08-11 16:48:56 +02:00
Laurent Szyster
4f24a8ed71
#40 adding created_at and update_at timestamps to subscribers and settings
2015-08-11 12:47:24 +02:00
Vlad
dc69763601
Reorganize unit tests into mirroring /lib folder as per #48
2015-08-11 00:27:03 +00:00
marco
a996068626
PHP latest versions don't use the RSA word in the private key.
2015-08-10 17:51:24 +02:00
root
1e91d077bd
Removed UnitTest and AcceptanceTester from tests
2015-08-10 15:42:52 +00:00
marco
bff67b8d0a
Refactor tests.
2015-08-09 22:17:35 +02:00
marco
acc0bb183d
Refactor Renderer into another class to avoid polluting the initalizer.
2015-08-08 23:01:23 +02:00
marco
34153e8df6
Refactor all env variables into Env class.
2015-08-08 22:35:46 +02:00
marco
268c330249
Remove waiting two seconds for each acceptance test.
...
Tests are too slow when using wait: 2 in CodeCeption. Let's not
use a global wait and just wait in a single test if we
see issues with JavaScript UIs.
2015-08-08 16:23:22 +02:00
marco
8994f3c165
Move Form to another branch, so that Jo can refactor it.
...
In order to keep the master branch clean, the form logic
is now lining in a feature branch, so that it can be refactored
and cleaned up to be compatible with the core.
2015-08-08 16:11:57 +02:00
marco
e8da94b679
Reimport Host settings at a later time, when we'll need them.
...
Right now we don't need the hosts settings, and it makes sense
to just keep what we really need into the new container, so
that we can migrate things in pull requests, step by step,
and review code before merging.
2015-08-08 16:08:15 +02:00
marco
756f2deab6
Settings is now a model in our DB.
2015-08-07 22:59:22 +02:00
marco
8ce501178d
Settings model.
2015-08-07 22:57:38 +02:00