Commit Graph

43 Commits

Author SHA1 Message Date
stoletniy
6ff3895940 Add missing this for stubs expecting a number of method calls to work 2017-06-22 11:55:15 +01:00
Vlad
be63aa727d Adds return statement to CSS compilication task
Swaps is_file with is_readable when checking for manifest's existance
2017-06-20 11:33:56 -04:00
Vlad
6c270ab095 Reads and stores assets manifest inside Renderer class
Updates unit tests
2017-06-20 11:33:56 -04:00
mrcasual
01eaf1ef2d Merge pull request #937 from mailpoet/premium_updates_fix
Add updater to the Free [PREMIUM-22]
2017-06-19 11:09:42 -04:00
Pavel Dohnal
ebe3f0bd00 Rename variables by coding standards
[MAILPOET-923]
2017-06-14 14:35:33 +01:00
Pavel Dohnal
fa3ba609f3 Show a notice to admin if network activation
Mailpoet seems to be working on network activated multisites but we
don't support it.
[MAILPOET-923]
2017-06-14 14:30:20 +01:00
stoletniy
fe9aa03de1 Add updater to the Free [PREMIUM-22] 2017-06-14 14:24:18 +03:00
fred
5fa1eb643a Remove tests that may fail because of the original database content 2017-06-12 13:13:17 +02:00
fred
3a4b364bcd Modify unit tests following previous changes 2017-06-12 13:13:16 +02:00
fred
8517896660 Rename imported_data_mapping table to mapping_to_external_entities 2017-06-12 13:13:06 +02:00
fred
c78933f7c4 Numerous fixes following the code review:
H1 title should be "Welcome to MailPoet version 3!", as per wireframes
remove logo in top right of the page
remove the classes feature-section one-col to the parent
new styles for #logger
progress bar: ensure that the color and size for the font are the same as our current progress bar.
display the progress bar at 100% when the import of subscribers and lists is complete
move loadSQL() function in tests/_support/Helper/Database.php
remove CSS browser prefixes
use AMD module definition to embed the JavaScript
remove extra whitespace in JavaScript file
remove the redundant functions descriptions
rename objectPlugin to mailpoet_mp2_migrator
replace private $chunks_size by the constant CHUNK_SIZE
add the constant IMPORT_TIMEOUT_IN_SECONDS
replace Helpers::mysqlDate() by $datetime->formatTime(time(), \MailPoet\WP\DateTime::DEFAULT_DATE_TIME_FORMAT)
make the log messages translatable
fix PHPDoc
replace Env::$plugin_name by 'mailpoet' in the translation functions
use $snake_case for variable names, use lowercaseCamelCase for method names, use CamelCase for class names
define MP2 table names as constants
add spaces around ternary operators
use the models for MP3 entities, instead of counting via raw SQL queries
use \ORM::for_table('some_table')::count()
2017-06-12 13:13:05 +02:00
fred
b7f7dc6728 Add unit tests for the MP2Migrator class
Add the method "invokeMethod" in the MailPoetTest class to be able to test private and protected methods
Move the "rowsCount" method in the Helpers class for reusability
Add the method "loadSQL" in the Helpers class
Store the mapping between MP2 user ID and MP3 subscriber ID
2017-06-12 13:13:02 +02:00
mrcasual
5b99e66d8d Merge pull request #922 from mailpoet/fix-tests-problems
Fix tests problems
2017-06-07 10:34:20 -04:00
Pavel Dohnal
b80683a9a1 Fix unit tests for PHPUnit v6
Codeception from version 2.3 up comes with PHPUnit v6 which changed
__construct behaviour. Our tests have to call parent __constructor in
order to work. The error was:
[PHPUnit\Framework\Exception] array_merge(): Argument #1 is not an array
2017-06-07 11:32:33 +01:00
stoletniy
580dd38b3a Rename methods for consistency and better readability [PREMIUM-9] 2017-06-07 12:39:44 +03:00
stoletniy
47d4e98aae Integrate installer with the Release API [PREMIUM-9] 2017-06-07 12:39:43 +03:00
stoletniy
7ebb7bac17 Add Premium installation/activation UI [PREMIUM-9] 2017-06-07 12:39:43 +03:00
stoletniy
f7efe44f09 Fix ServicesChecker behavior, make MSS check stricter [MAILPOET-890] 2017-06-07 12:30:38 +03:00
stoletniy
7aa0f21d11 Rework 'Send with...' tab UI, make a single license key field [MAILPOET-890] 2017-06-07 12:30:37 +03:00
Tautvidas Sipavičius
92616063ec Fix unit test for generating DB source name 2017-05-30 21:18:45 +03:00
Tautvidas Sipavičius
3d2168856d Fix unit tests for Env charsets and collations 2017-05-24 15:45:12 +03:00
Alexey Stoletniy
a7260cba3d Make the Premium key check stricter, split a unit test into more granular ones [PREMIUM-4] 2017-05-05 18:09:00 +03:00
Alexey Stoletniy
787e022382 Rename license key constants and vars, optimize error generation [PREMIUM-4] 2017-05-05 18:04:52 +03:00
Alexey Stoletniy
3cb08e3c09 Rename MSS check methods to better distinguish them from Premium ones [PREMIUM-4] 2017-05-04 09:36:38 +03:00
Alexey Stoletniy
0474985866 Add unit tests [PREMIUM-4] 2017-05-04 09:25:34 +03:00
Alexey Stoletniy
98d6f55a6e Tweak Sending Service key validation after a code review [MAILPOET-743]
* Abstract key state to unbound it from the API response codes
* Rename SendingServiceKeyCheck task for clarity
* Add a setter for the API key in the Bridge API class
* Make some smaller fixes
2017-01-27 16:22:11 +03:00
Alexey Stoletniy
438b4fb1ec Add unit tests [MAILPOET-743] 2017-01-27 16:22:09 +03:00
Alexey Stoletniy
f1ced11809 Remove leading slashes in unit test imports [MAILPOET-764] 2017-01-25 16:28:36 +03:00
Vlad
915f8b5865 - Updates test condition 2017-01-17 13:03:02 -05:00
Vlad
4de03db125 - Updates test condition 2017-01-17 11:59:22 -05:00
Vlad
f734d47b26 - Extracts database configuration into a separate class
- Conditionally sets the session wait_timeout value
- Updates unit tests
2017-01-17 11:23:00 -05:00
Vlad
625f828cce - Sets MySQL timeout to 60 seconds 2017-01-16 09:07:34 -05:00
Vlad
b758284df7 - Fixes unit test 2017-01-12 17:49:28 -05:00
Vlad
714f81d936 - Moves hooks setup to wp_load action
- Adds post notification scheduler to all post types
2017-01-08 17:27:02 -05:00
stoletniy
90e7026355 Merge pull request #739 from mailpoet/archives_shortcode_fix
Fixes archives shortcode and ability to manage subscription/unsubscribe [MAILPOET-737]
2016-12-27 09:39:15 +03:00
Vlad
31116a7cf6 - Removes setting DB character set to utf8 2016-12-21 18:21:36 -05:00
Vlad
949d6033d7 - Fixes DB configuration being partially set 2016-12-20 10:14:04 -05:00
Vlad
cad6391fc6 - Updates the format of db timezone offset to two-digit hours and minutes 2016-12-20 10:13:11 -05:00
Vlad
9095482af2 - Updates unit tests 2016-12-18 23:24:58 -05:00
Tautvidas Sipavičius
b046c9ea4b Gracefully catches Twig exceptions and displays error messages
MAILPOET-667 #time 3h
2016-11-10 16:33:50 +02:00
Jonathan Labreuille
a9b9e9c631 Updated tests in order to fix WP related issues 2016-03-18 14:30:59 +01:00
MrCasual
7b54285ca6 - Adds tests for the main Import class
- Updates tests for Env (proper host detection with port)
- Improves import
2015-11-09 00:25:24 -05:00
Vlad
dc69763601 Reorganize unit tests into mirroring /lib folder as per #48 2015-08-11 00:27:03 +00:00