Commit graph

82 commits

Author SHA1 Message Date
meadsteve
356a2293a1 move logging related classes to appropriate namespace. 2013-12-13 16:10:54 +00:00
meadsteve
f05ffb3081 update executor test 2013-12-13 16:07:11 +00:00
meadsteve
1bc2117c69 extracted build logging logic from the Builder class. 2013-12-13 15:57:56 +00:00
meadsteve
3a3cc98f86 rename CommandExecutor::executeCommand() so that it's not confused with the Builder::executeCommand() 2013-12-13 14:41:02 +00:00
steve.brazier
8d8714746c move findBinary from Builder to CommandExecutor. 2013-12-12 16:17:11 +00:00
steve.brazier
1307240622 add return value tests for CommandExecutor. 2013-12-12 16:04:07 +00:00
steve.brazier
7a5aa5814f add tests for CommandExecutor. 2013-12-12 14:37:47 +00:00
steve.brazier
974aeeffdc Merge branch 'unit-testing' into plugin-builder 2013-12-06 15:18:37 +00:00
steve.brazier
52a908009d fix PhpUnit test caseing. 2013-12-06 15:17:17 +00:00
steve.brazier
e1654ee4b6 add test for Executor::executePlugins 2013-12-06 13:14:19 +00:00
meadsteve
1ca8b9628c remove arguments from Executor test assertions that are not required. 2013-12-06 13:07:48 +00:00
steve.brazier
23d6238aa2 add tests for plugin executor logging 2013-12-06 13:04:27 +00:00
steve.brazier
bad0737df1 add tests for Plugin Executor 2013-12-06 12:52:47 +00:00
meadsteve
ee9871e4a8 add tests to LoggerConfig for handler attaching. 2013-11-28 21:36:56 +00:00
meadsteve
f1052443ab add basic type checking for LoggerConfig::GetFor 2013-11-28 21:17:01 +00:00
Steve B
aca6af3fec add test for non-function loader in plugin factory. 2013-11-28 14:12:50 +00:00
Steve B
9891a4be62 force plugin factory to only build plugins matching interface. 2013-11-28 14:05:26 +00:00
meadsteve
080784adc5 fix test expectations to be exact in phpunit 2013-11-25 21:48:21 +00:00
meadsteve
a2c25d2d8f fix builder mocking 2013-11-25 21:30:10 +00:00
meadsteve
03a81a3283 fix whitespace. 2013-11-25 21:19:48 +00:00
meadsteve
9d1d2443a9 Move the mailer constructor logic out of the plugin and in to a factory class for reuse. 2013-11-17 21:26:38 +00:00
meadsteve
51f73458c8 allow swiftmailer object to be passed in to Email Plugin. 2013-11-17 17:50:06 +00:00
meadsteve
e1d8239e8a Create factory for plugins that resources can be registered with. 2013-11-17 17:23:35 +00:00
meadsteve
637be4af63 added mocking for missing FindBinary command in phpunit tests 2013-11-03 11:48:01 +00:00
meadsteve
9a60c528dd mocked the missing build object for unit test for phpunit plugin. 2013-11-03 11:33:37 +00:00
meadsteve
84370038aa Added basic body and title for the email notifications. 2013-06-04 21:47:45 +01:00
meadsteve
eaac43e0e8 Updating unit test to reflect that the test will fail without any addresses defined. 2013-06-04 20:13:15 +01:00
meadsteve
d2c408f589 Updating the email plugin tests so that getSystemConfig is mocked correctly. 2013-06-01 13:31:15 +01:00
meadsteve
f0a5ba50ca Filled out the Plugin\Email::sendEmail(). Pulls in the following settings from the phpci config under the heading email_settings:
smtp_address
smtp_port
smtp_username
smtp_password

and

from_address
2013-06-01 09:40:05 +01:00
meadsteve
f76a2a75cc Empty Email plugin and test committed. 2013-05-31 12:56:35 +01:00
Dan Cryer
6094b7013c Add file-level docblock to every file. 2013-05-16 02:16:56 +01:00
meadsteve
2914e3a87d Added a unit test case for the PHPUnit plugin. It's not fully comprehensive but good to get these started. 2013-05-16 10:52:33 +01:00