### Sample Usage for Install Script Source: https://github.com/vendidero/woocommerce-germanized/blob/master/tests/README.md Example of how to use the install script with specific database credentials. ```bash $ tests/bin/install.sh woocommerce_tests root root ``` -------------------------------- ### Install Dependencies and Generate Assets Source: https://github.com/vendidero/woocommerce-germanized/wiki/How-to-set-up-a-Germanized-development-environment Commands to install Node.js and Composer dependencies, and to start a watch process for asset rebuilding. ```bash $ cd ~/vagrant-local/www/wordpress-one/public_html/wp-content/plugins/woocommerce-germanized $ npm install $ composer install ``` ```bash npm run build-watch ``` -------------------------------- ### Install WordPress and WP Unit Test Library Source: https://github.com/vendidero/woocommerce-germanized/blob/master/tests/README.md Script to install WordPress and the WP Unit Test library. Requires database credentials. ```bash $ tests/bin/install.sh [db-host] ``` -------------------------------- ### Running All Tests Source: https://github.com/vendidero/woocommerce-germanized/blob/master/tests/README.md Command to execute all unit tests after setup. ```bash $ phpunit ``` -------------------------------- ### Interactive Mode Notice Source: https://github.com/vendidero/woocommerce-germanized/blob/master/license.txt Example of a notice to be displayed when a program starts in interactive mode, as required by the GNU GPL. ```text Copyright © This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. ``` -------------------------------- ### Template Override Example Source: https://github.com/vendidero/woocommerce-germanized/wiki/Overriding-Germanized-Templates This example shows how to copy a specific Germanized email template file from the plugin directory to a child theme directory to override it. ```bash cp wp-content/plugins/woocommerce-germanized/templates/emails/customer-paid-for-order.php wp-content/themes/my-child-theme/woocommerce-germanized/emails/customer-paid-for-order.php ``` -------------------------------- ### Check PHPUnit Version Source: https://github.com/vendidero/woocommerce-germanized/blob/master/tests/README.md Command to verify if PHPUnit is installed correctly. ```bash $ phpunit --version ``` -------------------------------- ### Clone Germanized Repository Source: https://github.com/vendidero/woocommerce-germanized/wiki/How-to-set-up-a-Germanized-development-environment Commands to navigate to the WordPress plugins directory and clone the Germanized repository or a user's fork. ```bash $ cd ~/vagrant-local/www/wordpress-one/public_html/wp-content/plugins/ ``` ```bash $ git clone git@github.com:vendidero/woocommerce-germanized.git ``` ```bash $ git clone git@github.com:USER_NAME/woocommerce-germanized.git ``` -------------------------------- ### Running Specific Tests Source: https://github.com/vendidero/woocommerce-germanized/blob/master/tests/README.md Command to run tests for a specific file or directory. ```bash $ phpunit tests/unit-tests/api/webhooks ``` -------------------------------- ### Product Specific Shortcodes Source: https://github.com/vendidero/woocommerce-germanized/blob/master/readme.txt Shortcodes to output product-specific notices within PageBuilders or on custom-built pages. The 'product' parameter is optional and falls back to the global $product variable. ```shortcode [gzd_product_unit_price product="123"] ``` ```shortcode [gzd_product_units product="123"] ``` ```shortcode [gzd_product_delivery_time product="123"] ``` ```shortcode [gzd_product_tax_notice product="123"] ``` ```shortcode [gzd_product_shipping_notice product="123"] ``` ```shortcode [gzd_product_defect_description product="123"] ``` ```shortcode [gzd_product_cart_desc product="123"] ``` -------------------------------- ### Text Code Coverage Summary Source: https://github.com/vendidero/woocommerce-germanized/blob/master/tests/README.md Command to display code coverage results in the console. ```bash $ phpunit --coverage-text ``` -------------------------------- ### Exclude Code from Coverage Source: https://github.com/vendidero/woocommerce-germanized/blob/master/tests/README.md Comment syntax to ignore specific lines or blocks of code from coverage reports. ```php // @codeCoverageIgnoreStart // @codeCoverageIgnoreEnd ``` -------------------------------- ### General Shortcodes Source: https://github.com/vendidero/woocommerce-germanized/blob/master/readme.txt General shortcodes for various functionalities within the WooCommerce Germanized plugin. ```shortcode [order_withdrawal_request_form] ``` ```shortcode [payment_methods_info] ``` ```shortcode [gzd_email_legal_page_attachments email_id="customer_processing_order"] ``` ```shortcode [gzd_complaints] ``` ```shortcode [gzd_return_request_form] ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.