marco
a84501024a
Refactor mailer.
2015-08-17 20:20:36 +02:00
marco
b6cac960b7
Fix empty whitespace.
2015-08-17 19:46:57 +02:00
Vlad
3af24f9877
Reverted back to Model class
2015-08-17 17:37:43 +00:00
Vlad
a26cbd6f41
- Renamed Model to BaseModel (make it clear)
...
- Updated RoboFile to compile assets or else tests break
2015-08-17 15:54:48 +00:00
MrCasual
61a372dd86
resolved merge conflicts
2015-08-17 10:00:37 -04: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
marco
9db0db83b1
There's no need to encode json in the Router.
2015-08-17 12:44:53 +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
MrCasual
b106870e96
Merged master / fixed merge conflict
2015-08-16 22:38:58 -04:00
marco
60919e6171
Router works for POST requests.
2015-08-16 20:21:34 +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
marco
60f63ccfe6
Router skeleton.
2015-08-13 21:57:05 +02:00
marco
d7f7e48d8b
Fix indentation.
2015-08-13 18:05:49 +02:00
marco
ed27b5716b
Fix indentation.
2015-08-13 18:05:26 +02:00
marco
781e016be5
Fix indentation.
2015-08-13 18:04:28 +02:00
marco
81c8b22b36
Fix indentation.
2015-08-13 18:03:36 +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
Vlad
c5f67cb371
- Database cleanup uses Models
...
- Formatted code as per Marco's comments
2015-08-12 22:48:42 +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
9f8a8f2311
Methods should be declared with parentheses immediately after the name.
2015-08-12 16:48:42 +02:00
Laurent Szyster
344a7dc92c
#40 overide save in models Setting and Subscriber
2015-08-12 12:43:33 +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
4f24a8ed71
#40 adding created_at and update_at timestamps to subscribers and settings
2015-08-11 12:47:24 +02:00
Vlad
26384d16b8
Fixes #49
2015-08-10 18:37:41 -04:00
Vlad
27c2a4b402
Fixes #49
2015-08-10 18:35:47 -04:00
marco
6bffc7b44e
PHP and closures. It's 1990 again.
2015-08-10 17:30:30 +02:00
marco
02fc4b81aa
Cleanup templates.
2015-08-09 22:05:11 +02:00
marco
8dace3f56a
Refactor initialization process.
2015-08-09 21:57:30 +02:00
marco
e089918fdb
Remove old CSS and JS loaders from the Initializer.
2015-08-09 21:47:45 +02:00
marco
787ee9f043
Refactor Localizer into a separate class.
2015-08-09 21:44:37 +02:00
marco
62c0f18c03
Refactor activator class.
2015-08-09 21:15:52 +02:00
marco
60c0bf702a
Migrate activation logic to a separate class.
2015-08-09 21:14:44 +02:00
marco
91c230ae04
Clean Initializer from all local variables and use Env.
2015-08-09 21:08:07 +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
a06919054d
Menu and future routing handling class independent from Initializer.
2015-08-08 17:28:26 +02:00
marco
0cf526375d
Db name generator should be private.
2015-08-08 16:52:26 +02:00
marco
fa16a49c1d
Add plugin name as environment variable.
2015-08-08 16:51:44 +02:00
marco
110c5c1cff
Separate DB activation from initializer construct method.
2015-08-08 16:48:28 +02:00
marco
3055cb7d47
Remove test log function.
2015-08-08 16:45:04 +02:00
marco
89a67ec44d
Disable form widget while waiting for Form refactor.
2015-08-08 16:18:40 +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
marco
f6c0607033
Add unique index to subscriber email attribute.
2015-08-07 22:29:51 +02:00
marco
a6bc4f5d18
Fix test for Migrator.
2015-08-07 22:14:43 +02:00