14fdfaed86
Fixed formatting issues as per Marco's remarks
2015-08-17 09:40:57 -04:00
ffc180eac8
#65 test the generateMessage method; test with more than one subscribers
2015-08-17 14:08:31 +02:00
f78ab1c44b
#65 renamed the generateMessage method; simplify the subscribers property; removed the handle method
2015-08-17 10:33:22 +02:00
32f01272f1
#65 a first Mailer for the Bridge, with a minimal test
2015-08-14 16:29:02 +02:00
78b5791a46
- Added 'Newsletters' model and wrote tests
...
- Fixed some formatting in unit tests
Closes #68
2015-08-14 13:31:45 +00:00
ed3e3b0eb8
Fix indentation.
2015-08-13 18:18:12 +02:00
3183e34afc
Fix indentation and naming on Setting test.
2015-08-13 18:11:14 +02:00
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
5d1b8524ea
Added Laurent's tests/model save() method
2015-08-13 09:58:41 -04:00
ca45214a64
fixed dkim unit test
2015-08-13 13:09:12 +02:00
d5cd2b6bd9
Tests must test created_at and updated_at behavior.
2015-08-12 18:40:39 +02:00
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
5aa7e20695
Indentation.
2015-08-12 16:52:08 +02:00
d5593b770b
REmove old initialization code in Subscriber test.
2015-08-12 16:50:55 +02:00
82c9c33b58
Methods declaration syntax.
2015-08-12 16:49:58 +02:00
fcabee0749
#40 splitted the test in two; added test for Setting too
2015-08-12 09:54:20 +02:00
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
8d50141a49
#40 findOne returns an empty object when none found
2015-08-11 16:54:07 +02:00
236f324f6d
Merge branch 'master' of github.com:mailpoet/mailpoet into issue-40
2015-08-11 16:48:56 +02:00
4f24a8ed71
#40 adding created_at and update_at timestamps to subscribers and settings
2015-08-11 12:47:24 +02:00
dc69763601
Reorganize unit tests into mirroring /lib folder as per #48
2015-08-11 00:27:03 +00:00
a996068626
PHP latest versions don't use the RSA word in the private key.
2015-08-10 17:51:24 +02:00
1e91d077bd
Removed UnitTest and AcceptanceTester from tests
2015-08-10 15:42:52 +00:00
acc0bb183d
Refactor Renderer into another class to avoid polluting the initalizer.
2015-08-08 23:01:23 +02:00
34153e8df6
Refactor all env variables into Env class.
2015-08-08 22:35:46 +02:00
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
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
756f2deab6
Settings is now a model in our DB.
2015-08-07 22:59:22 +02:00
8ce501178d
Settings model.
2015-08-07 22:57:38 +02:00
f6c0607033
Add unique index to subscriber email attribute.
2015-08-07 22:29:51 +02:00
a6bc4f5d18
Fix test for Migrator.
2015-08-07 22:14:43 +02:00
e2e5f94304
Fix inconsistency in tests when deleting a subscriber in the after filter.
2015-08-07 18:34:31 +02:00
5d7cbf136d
Final subscriber with ORM.
2015-08-07 18:30:31 +02:00
4378d42274
First implementation of the Subscriber ORM Model.
2015-08-07 15:36:43 +02:00
cffec78d38
Initialize the ORM in unit testing bootstrap.
2015-08-07 13:13:36 +02:00
065afb9c61
Add db source name to Env.
2015-08-07 12:57:12 +02:00
e24faf8b65
Public keyword is not needed.
2015-08-03 21:34:15 +02:00
eee532c62a
Add a global plugin prefix to the environment class.
2015-08-03 19:57:13 +02:00
12418fe28d
Rename test method.
2015-08-03 19:40:43 +02:00
dc00abb0da
Refactor Migrator to support functional sql generators.
2015-08-03 17:12:05 +02:00
8d4a2b6308
Merge branch 'master' of github.com:JoN1oP/namp2
2015-07-30 22:01:03 +02:00
1ddd74e991
fixed symlinks of select2 and added missing images + added i18n functions to twig templates (with auto text domain addition) + added rtl stylesheet (updated robofile to watch it separately from admin.styl so it can be included only if necessary
2015-07-30 21:25:39 +02:00
ba436ccc42
Migrator is now able to create real tables.
...
Because of how WordPress and the dbDelta function works, it's
basically impossile to test it with Unit testing.
We'll have to make sure we properly test this in acceptance testing.
2015-07-30 20:00:58 +02:00
47b874725b
Add DB charset to Env.
2015-07-30 15:32:38 +02:00
8b9cc8c109
Add all WP db variable to the Env.
2015-07-29 16:35:10 +02:00
8e0217674f
Env class to hold all environment variables.
...
We are going to use this class to store all variables
that we would store with globals and defines.
It will be initialized in the initializer and we'll be
able to get any variable with static methods.
2015-07-29 16:23:50 +02:00
ebe3c5547f
First Migrator class and test.
2015-07-29 16:03:47 +02:00
ffbc54ffb7
added loadEnv to unit test and removed bootstrap code + added basic acceptance test for form widget (had to increase the wait value oh web driver to bypass JS animations delay)
2015-07-28 11:40:31 +02:00
8aea2675f2
added acceptance test for formwidget + added utility method to login into WP for acceptance tests + fixed unit test of form renderer
2015-07-27 18:12:47 +02:00
2c73ab9c5f
added WP env to unit tests - migrated form widget and form renderer + need orm to finish widget implementation as it relies on forms
2015-07-27 17:40:47 +02:00