Adjusts all references of 'woothemes' to 'woocommerce' in relevant URLs, excluding the Travis CI integration which correctly uses 'woocommerce/woocommerce'.

This commit is contained in:
Matty 2016-09-28 12:17:40 +02:00
parent 4267275ab9
commit ae75f8b8cd
17 changed files with 28 additions and 28 deletions

View File

@ -15,14 +15,14 @@ GitHub is for _bug reports and contributions only_ - if you have a support quest
### Reporting Issues ### Reporting Issues
Reporting issues is a great way to became a contributor as it doesn't require technical skills. In fact you don't even need to know a programming language or to be able to check the code itself, you just need to make sure that everything works as expected and [submit an issue report](https://github.com/woothemes/woocommerce/issues/new) if you spot a bug. Sound like something you're up for? Go for it! Reporting issues is a great way to became a contributor as it doesn't require technical skills. In fact you don't even need to know a programming language or to be able to check the code itself, you just need to make sure that everything works as expected and [submit an issue report](https://github.com/woocommerce/woocommerce/issues/new) if you spot a bug. Sound like something you're up for? Go for it!
#### How To Submit An Issue Report #### How To Submit An Issue Report
If something isn't working, congratulations you've found a bug! Help us fix it by submitting an issue report: If something isn't working, congratulations you've found a bug! Help us fix it by submitting an issue report:
* Make sure you have a [GitHub account](https://github.com/signup/free) * Make sure you have a [GitHub account](https://github.com/signup/free)
* Search the [Existing Issues](https://github.com/woothemes/woocommerce/issues) to be sure that the one you've noticed isn't already there * Search the [Existing Issues](https://github.com/woocommerce/woocommerce/issues) to be sure that the one you've noticed isn't already there
* Submit a report for your issue * Submit a report for your issue
* Clearly describe the issue (including steps to reproduce it if it's a bug) * Clearly describe the issue (including steps to reproduce it if it's a bug)
* Make sure you fill in the earliest version that you know has the issue. * Make sure you fill in the earliest version that you know has the issue.

View File

@ -135,7 +135,7 @@
* Tweak - Allow failed orders to be edited. * Tweak - Allow failed orders to be edited.
* Tweak - If there are no shipping methods setup, dont prompt for shipping at checkout. * Tweak - If there are no shipping methods setup, dont prompt for shipping at checkout.
* Tweak - Allowed country exclusion, rather than just inclusion, in sell to setting. * Tweak - Allowed country exclusion, rather than just inclusion, in sell to setting.
* Lots, lots more - [see the comparison here: https://github.com/woothemes/woocommerce/compare/2.5.5...2.6.0 * Lots, lots more - [see the comparison here: https://github.com/woocommerce/woocommerce/compare/2.5.5...2.6.0
= 2.5.5 - 11/03/2016 = = 2.5.5 - 11/03/2016 =
* Fix - Before running dbdelta, drop indexes to prevent duplicate key notices. * Fix - Before running dbdelta, drop indexes to prevent duplicate key notices.
@ -501,7 +501,7 @@
* Dev - API - Deprecated /product/sku endpoint from v3. * Dev - API - Deprecated /product/sku endpoint from v3.
* Dev - API - Created the /products/id/orders endpoint to fetch orders containing a specific product. * Dev - API - Created the /products/id/orders endpoint to fetch orders containing a specific product.
* Localisation - Added Argentine currency and provinces. * Localisation - Added Argentine currency and provinces.
* [Various other small fixes and enhancements.](https://github.com/woothemes/woocommerce/issues?q=is%3Aissue+milestone%3A%222.4+Helpful+Hedgehog%22+is%3Aclosed) * [Various other small fixes and enhancements.](https://github.com/woocommerce/woocommerce/issues?q=is%3Aissue+milestone%3A%222.4+Helpful+Hedgehog%22+is%3Aclosed)
= 2.3.13 - 07/07/2015 = = 2.3.13 - 07/07/2015 =
* Fix - Improved the email settings save and tabs for 3rd party plugins. * Fix - Improved the email settings save and tabs for 3rd party plugins.
@ -982,7 +982,7 @@
* Dev - Introduces the WC_Order::needs_shipping_address() method. * Dev - Introduces the WC_Order::needs_shipping_address() method.
* Dev - Gateways can set transaction ID for the order. * Dev - Gateways can set transaction ID for the order.
* Dev - Gateways can do refunds via the Payment Gateway API. * Dev - Gateways can do refunds via the Payment Gateway API.
* Refactor - Changed the method in which order statuses are stored. Previously, order status was a taxonomy. This caused issues when unique term slugs differed from what we were expecting, and also added additonal overhead to order queries in reports. https://github.com/woothemes/woocommerce/issues/3064 Order status is now stored as post status - several new post statuses have been added. Order class variables are backwards compatible. The only thing to note (for devs) is that any query must use the order status instead of 'publish' when getting orders and querying by post_status. THe shop_order_status has also been removed. * Refactor - Changed the method in which order statuses are stored. Previously, order status was a taxonomy. This caused issues when unique term slugs differed from what we were expecting, and also added additonal overhead to order queries in reports. https://github.com/woocommerce/woocommerce/issues/3064 Order status is now stored as post status - several new post statuses have been added. Order class variables are backwards compatible. The only thing to note (for devs) is that any query must use the order status instead of 'publish' when getting orders and querying by post_status. THe shop_order_status has also been removed.
* Refactor - Update stock amounts with DB queries. * Refactor - Update stock amounts with DB queries.
* Refactor - Simplified attribute name sanitisation which maintains UTF8 char integrity. * Refactor - Simplified attribute name sanitisation which maintains UTF8 char integrity.
* Refactor - Country class return methods. * Refactor - Country class return methods.
@ -1696,7 +1696,7 @@
* Feature - New layered nav current filters widget. This lists active filters from all layered nav for de-selection. * Feature - New layered nav current filters widget. This lists active filters from all layered nav for de-selection.
* Feature - Added the option to sell products individually (only allow 1 in the cart). * Feature - Added the option to sell products individually (only allow 1 in the cart).
* Feature - New shop page/category archive display settings, and the ability to change display per-category. * Feature - New shop page/category archive display settings, and the ability to change display per-category.
* Feature - Allow shipping tax classes to be defined independent of items. https://github.com/woothemes/woocommerce/issues/1625 * Feature - Allow shipping tax classes to be defined independent of items. https://github.com/woocommerce/woocommerce/issues/1625
* Feature - Redone order item storage making them easier (and faster) to access for reporting, and querying purchases. Huge performance gains for reports. Order items are no longer serialised - they are stored in their own table with meta. Existing data can be be updated on upgrade. * Feature - Redone order item storage making them easier (and faster) to access for reporting, and querying purchases. Huge performance gains for reports. Order items are no longer serialised - they are stored in their own table with meta. Existing data can be be updated on upgrade.
* Feature - Update weights/dimensions for variations if they differ. * Feature - Update weights/dimensions for variations if they differ.
* Feature - is_order_received_page() courtesy of Lee Willis. * Feature - is_order_received_page() courtesy of Lee Willis.

View File

@ -157,7 +157,7 @@ module.exports = function( grunt ) {
type: 'wp-plugin', type: 'wp-plugin',
domainPath: 'i18n/languages', domainPath: 'i18n/languages',
potHeaders: { potHeaders: {
'report-msgid-bugs-to': 'https://github.com/woothemes/woocommerce/issues', 'report-msgid-bugs-to': 'https://github.com/woocommerce/woocommerce/issues',
'language-team': 'LANGUAGE <EMAIL@ADDRESS>' 'language-team': 'LANGUAGE <EMAIL@ADDRESS>'
} }
}, },

View File

@ -1,4 +1,4 @@
# [WooCommerce](https://woocommerce.com/) [![Built with Grunt](https://cdn.gruntjs.com/builtwith.png)](http://gruntjs.com/) [![Build Status](https://api.travis-ci.org/woothemes/woocommerce.svg?branch=master)](https://travis-ci.org/woothemes/woocommerce) [![Coverage Status](https://coveralls.io/repos/github/woothemes/woocommerce/badge.svg?branch=master)](https://coveralls.io/github/woothemes/woocommerce?branch=master) [![Code Climate](https://codeclimate.com/github/woothemes/woocommerce/badges/gpa.svg)](https://codeclimate.com/github/woothemes/woocommerce) # [WooCommerce](https://woocommerce.com/) [![Built with Grunt](https://cdn.gruntjs.com/builtwith.png)](http://gruntjs.com/) [![Build Status](https://api.travis-ci.org/woocommerce/woocommerce.svg?branch=master)](https://travis-ci.org/woocommerce/woocommerce) [![Coverage Status](https://coveralls.io/repos/github/woothemes/woocommerce/badge.svg?branch=master)](https://coveralls.io/github/woothemes/woocommerce?branch=master) [![Code Climate](https://codeclimate.com/github/woothemes/woocommerce/badges/gpa.svg)](https://codeclimate.com/github/woothemes/woocommerce)
Welcome to the WooCommerce repository on GitHub. Here you can browse the source, look at open issues and keep track of development. We recommend all developers to follow the [WooCommerce development blog](https://woocommerce.wordpress.com/) to stay up to date about everything happening in the project. You can also [follow @DevelopWC](https://twitter.com/DevelopWC) on Twitter for the latest development updates. Welcome to the WooCommerce repository on GitHub. Here you can browse the source, look at open issues and keep track of development. We recommend all developers to follow the [WooCommerce development blog](https://woocommerce.wordpress.com/) to stay up to date about everything happening in the project. You can also [follow @DevelopWC](https://twitter.com/DevelopWC) on Twitter for the latest development updates.
@ -19,6 +19,6 @@ This repository is not suitable for support. Please don't use our issue tracker
Support requests in issues on this repository will be closed on sight. Support requests in issues on this repository will be closed on sight.
## Contributing to WooCommerce ## Contributing to WooCommerce
If you have a patch, or stumbled upon an issue with WooCommerce core, you can contribute this back to the code. Please read our [contributor guidelines](https://github.com/woothemes/woocommerce/blob/master/.github/CONTRIBUTING.md) for more information how you can do this. If you have a patch, or stumbled upon an issue with WooCommerce core, you can contribute this back to the code. Please read our [contributor guidelines](https://github.com/woocommerce/woocommerce/blob/master/.github/CONTRIBUTING.md) for more information how you can do this.
If you have an idea for WooCommerce, see the [Roadmap Trello board](https://trello.com/b/YgRbpuze/woocommerce-roadmap). If you have an idea for WooCommerce, see the [Roadmap Trello board](https://trello.com/b/YgRbpuze/woocommerce-roadmap).

View File

@ -50,7 +50,7 @@ class WC_HookFinder {
} elseif ( ! empty( $details['function'] ) ) { } elseif ( ! empty( $details['function'] ) ) {
$link = 'http://docs.woocommerce.com/wc-apidocs/source-function-' . $details['function'] . '.html#' . $details['line']; $link = 'http://docs.woocommerce.com/wc-apidocs/source-function-' . $details['function'] . '.html#' . $details['line'];
} else { } else {
$link = 'https://github.com/woothemes/woocommerce/search?utf8=%E2%9C%93&q=' . $hook; $link = 'https://github.com/woocommerce/woocommerce/search?utf8=%E2%9C%93&q=' . $hook;
} }
return '<a href="' . $link . '">' . $hook . '</a>'; return '<a href="' . $link . '">' . $hook . '</a>';

View File

@ -3,7 +3,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: WooCommerce 2.7.0-dev\n" "Project-Id-Version: WooCommerce 2.7.0-dev\n"
"Report-Msgid-Bugs-To: https://github.com/woothemes/woocommerce/issues\n" "Report-Msgid-Bugs-To: https://github.com/woocommerce/woocommerce/issues\n"
"POT-Creation-Date: 2016-08-02 13:43:08+00:00\n" "POT-Creation-Date: 2016-08-02 13:43:08+00:00\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n" "Content-Type: text/plain; charset=utf-8\n"

View File

@ -202,8 +202,8 @@ class WC_Admin_Help {
'title' => __( 'Found a bug?', 'woocommerce' ), 'title' => __( 'Found a bug?', 'woocommerce' ),
'content' => 'content' =>
'<h2>' . __( 'Found a bug?', 'woocommerce' ) . '</h2>' . '<h2>' . __( 'Found a bug?', 'woocommerce' ) . '</h2>' .
'<p>' . sprintf( __( 'If you find a bug within WooCommerce core you can create a ticket via <a href="%1$s">Github issues</a>. Ensure you read the <a href="%2$s">contribution guide</a> prior to submitting your report. To help us solve your issue, please be as descriptive as possible and include your <a href="%3$s">system status report</a>.', 'woocommerce' ), 'https://github.com/woothemes/woocommerce/issues?state=open', 'https://github.com/woothemes/woocommerce/blob/master/.github/CONTRIBUTING.md', admin_url( 'admin.php?page=wc-status' ) ) . '</p>' . '<p>' . sprintf( __( 'If you find a bug within WooCommerce core you can create a ticket via <a href="%1$s">Github issues</a>. Ensure you read the <a href="%2$s">contribution guide</a> prior to submitting your report. To help us solve your issue, please be as descriptive as possible and include your <a href="%3$s">system status report</a>.', 'woocommerce' ), 'https://github.com/woocommerce/woocommerce/issues?state=open', 'https://github.com/woocommerce/woocommerce/blob/master/.github/CONTRIBUTING.md', admin_url( 'admin.php?page=wc-status' ) ) . '</p>' .
'<p><a href="' . 'https://github.com/woothemes/woocommerce/issues?state=open' . '" class="button button-primary">' . __( 'Report a bug', 'woocommerce' ) . '</a> <a href="' . admin_url( 'admin.php?page=wc-status' ) . '" class="button">' . __( 'System Status', 'woocommerce' ) . '</a></p>', '<p><a href="' . 'https://github.com/woocommerce/woocommerce/issues?state=open' . '" class="button button-primary">' . __( 'Report a bug', 'woocommerce' ) . '</a> <a href="' . admin_url( 'admin.php?page=wc-status' ) . '" class="button">' . __( 'System Status', 'woocommerce' ) . '</a></p>',
) ); ) );
@ -230,7 +230,7 @@ class WC_Admin_Help {
'<p><strong>' . __( 'For more information:', 'woocommerce' ) . '</strong></p>' . '<p><strong>' . __( 'For more information:', 'woocommerce' ) . '</strong></p>' .
'<p><a href="' . 'https://woocommerce.com/?utm_source=helptab&utm_medium=product&utm_content=about&utm_campaign=woocommerceplugin' . '" target="_blank">' . __( 'About WooCommerce', 'woocommerce' ) . '</a></p>' . '<p><a href="' . 'https://woocommerce.com/?utm_source=helptab&utm_medium=product&utm_content=about&utm_campaign=woocommerceplugin' . '" target="_blank">' . __( 'About WooCommerce', 'woocommerce' ) . '</a></p>' .
'<p><a href="' . 'https://wordpress.org/extend/plugins/woocommerce/' . '" target="_blank">' . __( 'WordPress.org Project', 'woocommerce' ) . '</a></p>' . '<p><a href="' . 'https://wordpress.org/extend/plugins/woocommerce/' . '" target="_blank">' . __( 'WordPress.org Project', 'woocommerce' ) . '</a></p>' .
'<p><a href="' . 'https://github.com/woothemes/woocommerce' . '" target="_blank">' . __( 'Github Project', 'woocommerce' ) . '</a></p>' . '<p><a href="' . 'https://github.com/woocommerce/woocommerce' . '" target="_blank">' . __( 'Github Project', 'woocommerce' ) . '</a></p>' .
'<p><a href="' . 'https://woocommerce.com/product-category/themes/woocommerce/?utm_source=helptab&utm_medium=product&utm_content=wcthemes&utm_campaign=woocommerceplugin' . '" target="_blank">' . __( 'Official Themes', 'woocommerce' ) . '</a></p>' . '<p><a href="' . 'https://woocommerce.com/product-category/themes/woocommerce/?utm_source=helptab&utm_medium=product&utm_content=wcthemes&utm_campaign=woocommerceplugin' . '" target="_blank">' . __( 'Official Themes', 'woocommerce' ) . '</a></p>' .
'<p><a href="' . 'https://woocommerce.com/product-category/woocommerce-extensions/?utm_source=helptab&utm_medium=product&utm_content=wcextensions&utm_campaign=woocommerceplugin' . '" target="_blank">' . __( 'Official Extensions', 'woocommerce' ) . '</a></p>' '<p><a href="' . 'https://woocommerce.com/product-category/woocommerce-extensions/?utm_source=helptab&utm_medium=product&utm_content=wcextensions&utm_campaign=woocommerceplugin' . '" target="_blank">' . __( 'Official Extensions', 'woocommerce' ) . '</a></p>'
); );

View File

@ -199,7 +199,7 @@ class WC_Admin_Meta_Boxes {
// We need this save event to run once to avoid potential endless loops. This would have been perfect: // We need this save event to run once to avoid potential endless loops. This would have been perfect:
// remove_action( current_filter(), __METHOD__ ); // remove_action( current_filter(), __METHOD__ );
// But cannot be used due to https://github.com/woothemes/woocommerce/issues/6485 // But cannot be used due to https://github.com/woocommerce/woocommerce/issues/6485
// When that is patched in core we can use the above. For now: // When that is patched in core we can use the above. For now:
self::$saved_meta_boxes = true; self::$saved_meta_boxes = true;

View File

@ -108,7 +108,7 @@ class WC_Cache_Helper {
* to append a unique string (based on time()) to each transient. When transients. * to append a unique string (based on time()) to each transient. When transients.
* are invalidated, the transient version will increment and data will be regenerated. * are invalidated, the transient version will increment and data will be regenerated.
* *
* Raised in issue https://github.com/woothemes/woocommerce/issues/5777. * Raised in issue https://github.com/woocommerce/woocommerce/issues/5777.
* Adapted from ideas in http://tollmanz.com/invalidation-schemes/. * Adapted from ideas in http://tollmanz.com/invalidation-schemes/.
* *
* @param string $group Name for the group of transients we need to invalidate * @param string $group Name for the group of transients we need to invalidate

View File

@ -626,7 +626,7 @@ class WC_Countries {
/** /**
* Get country locale settings. * Get country locale settings.
* @return array * @return array
* @todo [2.4] Check select2 4.0.0 compatibility with `placeholder` attribute and uncomment relevant lines. https://github.com/woothemes/woocommerce/issues/7729 * @todo [2.4] Check select2 4.0.0 compatibility with `placeholder` attribute and uncomment relevant lines. https://github.com/woocommerce/woocommerce/issues/7729
*/ */
public function get_country_locale() { public function get_country_locale() {
if ( empty( $this->locale ) ) { if ( empty( $this->locale ) ) {

View File

@ -359,7 +359,7 @@ class WC_Coupon extends WC_Legacy_Coupon {
* *
* Get item discount by dividing item cost by subtotal to get a %. * Get item discount by dividing item cost by subtotal to get a %.
* *
* Uses price inc tax if prices include tax to work around https://github.com/woothemes/woocommerce/issues/7669 and https://github.com/woothemes/woocommerce/issues/8074. * Uses price inc tax if prices include tax to work around https://github.com/woocommerce/woocommerce/issues/7669 and https://github.com/woocommerce/woocommerce/issues/8074.
*/ */
if ( wc_prices_include_tax() ) { if ( wc_prices_include_tax() ) {
$discount_percent = ( $cart_item['data']->get_price_including_tax() * $cart_item_qty ) / WC()->cart->subtotal; $discount_percent = ( $cart_item['data']->get_price_including_tax() * $cart_item_qty ) / WC()->cart->subtotal;

View File

@ -415,7 +415,7 @@ class WC_Install {
/** /**
* Get Table schema. * Get Table schema.
* https://github.com/woothemes/woocommerce/wiki/Database-Description/ * https://github.com/woocommerce/woocommerce/wiki/Database-Description/
* @return string * @return string
*/ */
private static function get_schema() { private static function get_schema() {

View File

@ -188,7 +188,7 @@ add_filter( 'wp_nav_menu_objects', 'wc_nav_menu_item_classes', 2 );
/** /**
* Fix active class in wp_list_pages for shop page. * Fix active class in wp_list_pages for shop page.
* *
* https://github.com/woothemes/woocommerce/issues/177. * https://github.com/woocommerce/woocommerce/issues/177.
* *
* @author Jessor, Peter Sterling * @author Jessor, Peter Sterling
* @param string $pages * @param string $pages

View File

@ -5,7 +5,7 @@
"homepage": "https://woocommerce.com/", "homepage": "https://woocommerce.com/",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/woothemes/woocommerce.git" "url": "https://github.com/woocommerce/woocommerce.git"
}, },
"license": "GPL-3.0+", "license": "GPL-3.0+",
"main": "Gruntfile.js", "main": "Gruntfile.js",

View File

@ -78,7 +78,7 @@ And theres plenty more where they came from. Visit our [extensions page](http
When you download WooCommerce, you join a community of more than a million store owners, developers, and WordPress enthusiasts. Were one of the fastest-growing open source communities online, and whether youre a n00b or a Ninja, wed love to have you! When you download WooCommerce, you join a community of more than a million store owners, developers, and WordPress enthusiasts. Were one of the fastest-growing open source communities online, and whether youre a n00b or a Ninja, wed love to have you!
If youre interested in contributing to WooCommerce weve got more than 350 contributors, and theres always room for more. Head over to the [WooCommerce GitHub Repository](https://github.com/woothemes/woocommerce) to find out how you can pitch in. If youre interested in contributing to WooCommerce weve got more than 350 contributors, and theres always room for more. Head over to the [WooCommerce GitHub Repository](https://github.com/woocommerce/woocommerce) to find out how you can pitch in.
Want to add a new language to WooCommerce? Swell! You can contribute via [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/woocommerce). Want to add a new language to WooCommerce? Swell! You can contribute via [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/woocommerce).
@ -140,7 +140,7 @@ You can vote on and request new features and extensions in our [WooIdeas board](
= Where can I report bugs or contribute to the project? = = Where can I report bugs or contribute to the project? =
Bugs can be reported either in our support forum or preferably on the [WooCommerce GitHub repository](https://github.com/woothemes/woocommerce/issues). Bugs can be reported either in our support forum or preferably on the [WooCommerce GitHub repository](https://github.com/woocommerce/woocommerce/issues).
= Where can I find the REST API documentation? = = Where can I find the REST API documentation? =
@ -148,7 +148,7 @@ You can find the documentation of our REST API on the [WooCommerce REST API Docs
= WooCommerce is awesome! Can I contribute? = = WooCommerce is awesome! Can I contribute? =
Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/woocommerce/) :) Yes you can! Join in on our [GitHub repository](http://github.com/woocommerce/woocommerce/) :)
== Screenshots == == Screenshots ==
@ -180,7 +180,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
* Add reply-to to admin emails. * Add reply-to to admin emails.
* When deleting a tax rate class, remove it's tax rates. * When deleting a tax rate class, remove it's tax rates.
[See changelog for all versions](https://raw.githubusercontent.com/woothemes/woocommerce/master/CHANGELOG.txt). [See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce/master/CHANGELOG.txt).
== Upgrade Notice == == Upgrade Notice ==

View File

@ -38,7 +38,7 @@ A text code coverage summary can be displayed using the `--coverage-text` option
* Each test method should cover a single method or function with one or more assertions * Each test method should cover a single method or function with one or more assertions
* A single method or function can have multiple associated test methods if it's a large or complex method * A single method or function can have multiple associated test methods if it's a large or complex method
* Use the test coverage HTML report (under `tmp/coverage/index.html`) to examine which lines your tests are covering and aim for 100% coverage * Use the test coverage HTML report (under `tmp/coverage/index.html`) to examine which lines your tests are covering and aim for 100% coverage
* For code that cannot be tested (e.g. they require a certain PHP version), you can exclude them from coverage using a comment: `// @codeCoverageIgnoreStart` and `// @codeCoverageIgnoreEnd`. For example, see [`wc_round_tax_total()`](https://github.com/woothemes/woocommerce/blob/master/includes/wc-formatting-functions.php#L155-155) * For code that cannot be tested (e.g. they require a certain PHP version), you can exclude them from coverage using a comment: `// @codeCoverageIgnoreStart` and `// @codeCoverageIgnoreEnd`. For example, see [`wc_round_tax_total()`](https://github.com/woocommerce/woocommerce/blob/master/includes/wc-formatting-functions.php#L155-155)
* In addition to covering each line of a method/function, make sure to test common input and edge cases. * In addition to covering each line of a method/function, make sure to test common input and edge cases.
* Prefer `assertsEquals()` where possible as it tests both type & equality * Prefer `assertsEquals()` where possible as it tests both type & equality
* Remember that only methods prefixed with `test` will be run so use helper methods liberally to keep test methods small and reduce code duplication. If there is a common helper method used in multiple test files, consider adding it to the `WC_Unit_Test_Case` class so it can be shared by all test cases * Remember that only methods prefixed with `test` will be run so use helper methods liberally to keep test methods small and reduce code duplication. If there is a common helper method used in multiple test files, consider adding it to the `WC_Unit_Test_Case` class so it can be shared by all test cases

View File

@ -9,8 +9,8 @@ class WC_Tests_Cart extends WC_Unit_Test_Case {
/** /**
* Test some discount logic which has caused issues in the past. * Test some discount logic which has caused issues in the past.
* Tickets: * Tickets:
* https://github.com/woothemes/woocommerce/issues/10573 * https://github.com/woocommerce/woocommerce/issues/10573
* https://github.com/woothemes/woocommerce/issues/10963 * https://github.com/woocommerce/woocommerce/issues/10963
* *
* Due to discounts being split amongst products in cart. * Due to discounts being split amongst products in cart.
*/ */