Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: wp_smtp_admin.php
- ===================================================================
- --- wp_smtp_admin.php (revision 924247)
- +++ wp_smtp_admin.php (working copy)
- @@ -150,12 +150,12 @@
- <td>
- <label>
- <input name="wp_smtp_smtpauth" type="radio" value="no"<?php if ($wsOptions["smtpauth"] == 'no') { ?> checked="checked"<?php } ?> />
- - No
- + <?php _e('No'); ?>
- </label>
-
- <label>
- <input name="wp_smtp_smtpauth" type="radio" value="yes"<?php if ($wsOptions["smtpauth"] == 'yes') { ?> checked="checked"<?php } ?> />
- - Yes
- + <?php _e('Yes'); ?>
- </label>
- </td>
- </tr>
- Index: lang/wp-smtp-he_IL.mo
- ===================================================================
- Cannot display: file marked as a binary type.
- svn:mime-type = application/octet-stream
- Property changes on: lang/wp-smtp-he_IL.mo
- ___________________________________________________________________
- Added: svn:mime-type
- + application/octet-stream
- Index: lang/wp-smtp-he_IL.po
- ===================================================================
- --- lang/wp-smtp-he_IL.po (revision 0)
- +++ lang/wp-smtp-he_IL.po (revision 0)
- @@ -0,0 +1,108 @@
- +msgid ""
- +msgstr ""
- +"Project-Id-Version: WP-SMTP Languages\n"
- +"Report-Msgid-Bugs-To: \n"
- +"POT-Creation-Date: 2013-10-07 00:39+0800\n"
- +"PO-Revision-Date: 2014-05-31 17:16+0200\n"
- +"Last-Translator: Ran Bar-Zik <ran@bar-zik.com>\n"
- +"Language-Team: 玻璃泉BoLiQuan.COM <berttung(#)gmail.com>\n"
- +"MIME-Version: 1.0\n"
- +"Content-Type: text/plain; charset=UTF-8\n"
- +"Content-Transfer-Encoding: 8bit\n"
- +"X-Poedit-KeywordsList: __;_e\n"
- +"X-Poedit-Basepath: .\n"
- +"X-Poedit-SourceCharset: utf-8\n"
- +"X-Generator: Poedit 1.6.5\n"
- +"Plural-Forms: nplurals=2; plural=(n != 1);\n"
- +"Language: he_IL\n"
- +"X-Poedit-SearchPath-0: D:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\wp-"
- +"smtp\n"
- +
- +#: D:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp-smtp.php:66
- +msgid "Settings"
- +msgstr "הגדרות"
- +
- +#: D:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:21
- +msgid "The field \"From\" must be a valid email address!"
- +msgstr "השדה \"מאת\" צריך להיות כתובת דואר אלקטרוני"
- +
- +#: D:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:24
- +msgid "The field \"SMTP Host\" can not be left blank!"
- +msgstr "השדה \"SMTP Host\" צריך להיות מלא!"
- +
- +#: D:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:27
- +msgid "Options saved."
- +msgstr "ההגדרות נשמרו."
- +
- +#: D:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:47
- +msgid "Message sent!"
- +msgstr "ההודעה נשלחה."
- +
- +#: D:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:54
- +msgid "Some errors occurred!"
- +msgstr "אירעה שגיאה!"
- +
- +#: D:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:57
- +msgid ""
- +"The fields \"To\" \"Subject\" \"Message\" can not be left blank when testing!"
- +msgstr "השדות \"אל\"' \"נושא\" ו\"הודעה\" לא יכולים להיות ריקים במהלך הבדיקה"
- +
- +#: D:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:80
- +msgid "From"
- +msgstr "מאת"
- +
- +#: D:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:90
- +msgid "From Name"
- +msgstr "מאת - שם"
- +
- +#: D:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:100
- +msgid "SMTP Host"
- +msgstr "SMTP Host"
- +
- +#: D:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:110
- +msgid "SMTP Secure"
- +msgstr "חיבור SMTP מאובטח"
- +
- +#: D:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:131
- +msgid "SMTP Port"
- +msgstr "SMTP Port"
- +
- +#: D:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:141
- +msgid "SMTP Authentication"
- +msgstr "ביצוע אימות מול ה-SMTP"
- +
- +#: D:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:157
- +msgid "Username"
- +msgstr "שם משתמש"
- +
- +#: D:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:167
- +msgid "Password"
- +msgstr "סיסמה"
- +
- +#: D:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:177
- +msgid "Delete Options"
- +msgstr "מחיקת ההגדרות"
- +
- +#: D:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:182
- +msgid "Delete options while deactivate this plugin."
- +msgstr "מחיקת ההגדרות כאשר מפסיקים את פעולת התוסף"
- +
- +#: D:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:190
- +msgid "Save Changes"
- +msgstr "שמירת שינויים"
- +
- +#: D:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:199
- +msgid "To:"
- +msgstr "אל:"
- +
- +#: D:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:209
- +msgid "Subject:"
- +msgstr "נושא:"
- +
- +#: D:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:219
- +msgid "Message:"
- +msgstr "הודעה:"
- +
- +#: D:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:230
- +msgid "Send Test"
- +msgstr "שליחת בדיקה"
- Index: tests/bootstrap.php
- ===================================================================
- --- tests/bootstrap.php (revision 0)
- +++ tests/bootstrap.php (revision 0)
- @@ -0,0 +1,35 @@
- +<?php
- +/**
- + * Bootstrap the plugin unit testing environment.
- + *
- + * Edit 'active_plugins' setting below to point to your main plugin file.
- + *
- + * @package wordpress-plugin-tests
- + */
- +
- +// Activates this plugin in WordPress so it can be tested.
- +$GLOBALS['wp_tests_options'] = array(
- + 'active_plugins' => array( 'wp-smtp/wp-smtp.php' ),
- +);
- +
- +
- +
- +// If the develop repo location is defined (as WP_DEVELOP_DIR), use that
- +// location. Otherwise, we'll just assume that this plugin is installed in a
- +// WordPress develop SVN checkout.
- +
- +if( false !== getenv( 'WP_DEVELOP_DIR' ) ) {
- + require getenv( 'WP_DEVELOP_DIR' ) . '/tests/phpunit/includes/bootstrap.php';
- +} else {
- + require '../../../../tests/phpunit/includes/bootstrap.php';
- +
- +}
- +
- +$wsOptions = array();
- +$wsOptions["from"] = 'smtp-test@test.com';
- +$wsOptions["fromname"] = 'testy';
- +$wsOptions["host"] = 'smtp-test.test-com';
- +$wsOptions["smtpsecure"] = 'no';
- +$wsOptions["port"] = '18000';
- +$wsOptions["smtpauth"] = 'no';
- +update_option("wp_smtp_options",$wsOptions);
- Property changes on: tests/bootstrap.php
- ___________________________________________________________________
- Added: svn:executable
- + *
- Index: tests/test_wp-smtp.php
- ===================================================================
- --- tests/test_wp-smtp.php (revision 0)
- +++ tests/test_wp-smtp.php (revision 0)
- @@ -0,0 +1,69 @@
- +<?php
- +
- +/**
- + * Tests to test that that testing framework is testing tests. Meta, huh?
- + *
- + * @package wordpress-plugins-tests
- + */
- +class WP_Test_WordPress_Plugin_Tests extends WP_UnitTestCase {
- +
- + public function setUp() {
- + $_SERVER['SERVER_NAME'] = 'example.com';
- + }
- + /**
- + * Run a simple test to ensure that the tests are running
- + */
- + function test_tests() {
- + $this->assertTrue( true );
- + }
- +
- + /**
- + * Ensure that the plugin has been installed and activated.
- + */
- + function test_plugin_activated() {
- + $this->assertTrue( is_plugin_active( 'wp-smtp/wp-smtp.php' ) );
- + }
- +
- + /*
- + * See that The Mailer is real smtp
- + */
- +
- + function test_wp_mailer_smtp() {
- + wp_mail('test-destination@test.com', 'This is test title', 'This is test body');
- + $this->assertEquals($GLOBALS['phpmailer']->Mailer, 'smtp');
- + }
- +
- + /* testing secured smtp request */
- +
- + function test_wp_mailer_secure_smtp() {
- + global $wsOptions;
- + $wsOptions["smtpsecure"] = 'yes';
- + $wsOptions["smtpauth"] = 'yes';
- + $wsOptions["username"] = 'testy_user';
- + $wsOptions["password"] = 'testy_password';
- + update_option("wp_smtp_options",$wsOptions);
- +
- +
- + wp_mail('test-destination@test.com', 'This is test title', 'This is test body');
- + $phpmailer = $GLOBALS['phpmailer'];
- +
- + $this->assertTrue( $phpmailer->SMTPAuth );
- + $this->assertEquals($phpmailer->Username, 'testy_user');
- + $this->assertEquals($phpmailer->Password, 'testy_password');
- + }
- +
- + /*
- + * Test that filter for setting is there
- + */
- +
- + function test_wp_smtp_filter() {
- + $result = has_filter('plugin_action_links','wp_smtp_settings_link');
- + $this->assertTrue(is_numeric($result));
- + }
- +
- + public function tearDown() {
- + unset($_SERVER['SERVER_NAME']);
- + }
- +
- +
- +}
- Property changes on: tests/test_wp-smtp.php
- ___________________________________________________________________
- Added: svn:executable
- + *
- Index: phpunit.xml
- ===================================================================
- --- phpunit.xml (revision 0)
- +++ phpunit.xml (revision 0)
- @@ -0,0 +1,8 @@
- +<phpunit bootstrap="tests/bootstrap.php" backupGlobals="false" colors="true">
- + <testsuites>
- + <!-- Default test suite to run all tests -->
- + <testsuite>
- + <directory prefix="test_" suffix=".php">tests</directory>
- + </testsuite>
- + </testsuites>
- +</phpunit>
- \ No newline at end of file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement