Page 1 of 1

Editing the testconfiguration.php

Posted: Thu Feb 07, 2008 8:01 pm
by marcreck
Hi :)

Just bought a copy of shift this newsletter, and i would like to run the tests for swift. I have read the instructions, and changed the chmod to 0777, but i'm stuck on how to edit the Testconfiguration.php file. Even though it says what to define, Im not familliar with dealing with this type of thing, so i would really appreciate any examples/help anyone could give?

I assume its this that needs filling in, but im not sure what to put.

define("TEST_CONFIG_PATH", dirname(__FILE__));
define("DEFAULT_WRITABLE_PATH", TEST_CONFIG_PATH . "/tmp");
define("DEFAULT_LIBRARY_PATH", str_replace("tests", "lib", TEST_CONFIG_PATH));
define("FILES_PATH", TEST_CONFIG_PATH . "/files");
define("SIMPLE_PATH", str_replace('tests', 'simpletest', TEST_CONFIG_PATH));
define("WP_BLOG_HEADER_PATH", TEST_CONFIG_PATH . "/../../../../../");

Many thanks for any help you could give
Marc

Re: Editing the testconfiguration.php

Posted: Thu Feb 07, 2008 8:12 pm
by Chris Corbyn
Looks like all of that stuff isn't likely to need editting. The unit tests should run fine without editting anything other than the path to a simpletest installation... but the author appears to have modified my settings file and made his own so I'm not sure what's needed there.

The smoke tests on the other hand require some smtp settings and some email addresses to send from/to, but the configuration for that isn't posted in your thread so again, I'm not sure if the author has created his own config file.

Do you know what version of Swift Mailer the ShiftThis plugin uses?

Re: Editing the testconfiguration.php

Posted: Fri Feb 08, 2008 6:22 am
by marcreck
Thanks mate. This is copied from the screen, so it looks like v3.3.1. It was the smoke tests that didnt work, so thats prob becuase i didnt filll in the smtp section. I'll try that now. Thanks again for your reply (sorry it was 3 in the morn over here, so went to bed straight after posting).

P.s if you like breakbeat feel free to help yourself to my mixes. http://www.marcreck.com/wordpress2

:)

>>>About Swift Mailer

This plugin is currently using Swift Mailer v3.3.1. Swift is a fully OOP Library for sending e-mails from PHP websites and applications. It does not rely on PHP's native mail() function which is known for using high server resources when sending multiple emails. Instead, Swift communicates directly with an SMTP server or a MTA binary to send mail quickly and efficiently.

Before releasing your Newsletter upon the world, it's recommended to make sure that your Swift setup is working properly. Below you will find a number of simple test emails to run for your website. Try using the Swift Sendmail option first as it is the quickest and easiest way to send email. If your server does not support the Sendmail Option, use the SMTP option.
Swift Testing Options

You will need to make wp-content/plugins/st_newsletter/Swift/tests/tmp/ writable to the web user (usually "noobody" or "apache") (chmod 0777 will do this).
From Email:
From Name:
To Email:
To Name:
Connection Type:
Swift SMTP Settings:
Server: (smtp.yourhost.com)
Username
Password
Should we use TLS or SSL?: No TLS SSL
Port:
Additional Options:
Sendmail Path: Default: /usr/sbin/sendmail -bs

Smoke Tests

A message will be sent for each test. If the message sent successfully a green bar will appear and a set of instructions. If the message did not send successfully a red bar will appear along with the set of instructions and an error message.

Each smoke test contains an image to use as a guide to following the instructions. Be aware that you may see subtle differences as various mail clients will render emails slightly differently. This is perfectly normal.

Please note that these tests will open in a new window.

1. Basic Send Test
2. Multipart Test
3. Attachment Test
4. Header Encoding Test
5. Embedded Image Test


Unit Tests

Unit Tests go into much finer detail. They analyze the internals of the library from many different angles and make lots of expectations about what is supposed to happen. Several thousand expectations are made on this library and we want every single one of them to be satisfied.

1. Run Unit Tests

Please refer to the Swift Documentation for any further help with running any of these tests.

WordPress

Documentation — Support Forums
2.2 — 0.32 seconds

<<<<<<

Re: Editing the testconfiguration.php

Posted: Fri Feb 08, 2008 6:35 am
by Chris Corbyn
Cool :)

On your site now... I'll check out your stuff. Just waiting for some breaks I'm playing last.fm to finish first ;)

Re: Editing the testconfiguration.php

Posted: Fri Feb 08, 2008 6:39 am
by marcreck
Excellent i just needed to add my gmail account detaisl and the test worked. Many thanks :)

Re: Editing the testconfiguration.php

Posted: Fri Feb 08, 2008 6:42 am
by marcreck
Ah nice one mate. Check the fear and love mix first. Bill Hicks inspired Breaks. For something more downtempo and eclectic i recommend the mr elephant mixtapes. Hope you enjoy them and feel free to keep in touch/drop us an email. My friends are out by you at the mo. :)

Re: Editing the testconfiguration.php

Posted: Fri Feb 08, 2008 6:51 am
by Chris Corbyn
marcreck wrote:Ah nice one mate. Check the fear and love mix first. Bill Hicks inspired Breaks. For something more downtempo and eclectic i recommend the mr elephant mixtapes. Hope you enjoy them and feel free to keep in touch/drop us an email. My friends are out by you at the mo. :)
Yep, I'm a UK guy actually... only been in Oz since October. I used to be a regular at Manchester's longest running breaks night (Tangled w/ resident Steve Thorpe + regular guests incl Evil nine, Rennie Pilgrem + others) :) I miss it!

Re: Editing the testconfiguration.php

Posted: Fri Feb 08, 2008 6:57 am
by marcreck
Can i ask you 3 final questions while you here if thats cool?
...Any help be most appreciated.
Edited as notices a yahoo bot was trawlin the forums?

Re: Editing the testconfiguration.php

Posted: Fri Feb 08, 2008 7:05 am
by marcreck
Chris Corbyn wrote:
marcreck wrote:Ah nice one mate. Check the fear and love mix first. Bill Hicks inspired Breaks. For something more downtempo and eclectic i recommend the mr elephant mixtapes. Hope you enjoy them and feel free to keep in touch/drop us an email. My friends are out by you at the mo. :)
Yep, I'm a UK guy actually... only been in Oz since October. I used to be a regular at Manchester's longest running breaks night (Tangled w/ resident Steve Thorpe + regular guests incl Evil nine, Rennie Pilgrem + others) :) I miss it!
Ah cool man! Is there much breaks near you over there? Be cool to come over and play some point in the autum i was thinking. My friends a native there (and now here). She's back over there for 6 months Says theres a lot on if you know where to look. She's trying to hook me up actually. If you know anywhere/anyone, (and you like the mixes oc), i'd most appreciate any leads.

Re: Editing the testconfiguration.php

Posted: Fri Feb 08, 2008 7:13 am
by Chris Corbyn
1. Sendmail should work fine if the path to it is set correctly in the TestConfiguration file (and it's installed).

2. Hmm... some of those errors appear to be down to a (minor) bug when the PHP4 version gets run under PHP5 (a destructor is being called, along with the PHP4 compatible pseudo-destructor).

The ones which are showing pattern detected aren't so easy to explain. 3.3.2 is the latest version if you wanted to try dropping that in instead. Might be worth dropping in the PHP5 version rather than the PHP4 one too, although if the developer has PHP4-specific calls in the code the PHP5 version will give fatal errors.

3. Not cool :( Which connection was this using? NativeMail by any chance?

Re: Editing the testconfiguration.php

Posted: Fri Feb 08, 2008 7:25 am
by marcreck
Chris Corbyn wrote:1. Sendmail should work fine if the path to it is set correctly in the TestConfiguration file (and it's installed).

2. Hmm... some of those errors appear to be down to a (minor) bug when the PHP4 version gets run under PHP5 (a destructor is being called, along with the PHP4 compatible pseudo-destructor).

The ones which are showing pattern detected aren't so easy to explain. 3.3.2 is the latest version if you wanted to try dropping that in instead. Might be worth dropping in the PHP5 version rather than the PHP4 one too, although if the developer has PHP4-specific calls in the code the PHP5 version will give fatal errors.

3. Not cool :( Which connection was this using? NativeMail by any chance?
1. Thats prob the problem. Havent changed the config file at all, as wasnt sure where to put the address, or what the file that the address was leading to was?
2. Not sure about that. Or how/where to drop in the php5.
3. The plug in uses swiftmail, so i assume its that?

Do let me know if you too busy for these newbie questions, as i can email the developer if that would be more better

Thanks again