Ymese Unit Test Convention

June 9, 2019

version 0.0.1 created by: thinhnp Library:+ phpunit (https://phpunit.de/)+ https://brain-wp.github.io/BrainMonkey/ – PHP and WordPress functions mock Folder structure:__dev__/tests/class-folder-name/test-<php-file-name>.php Test class naming: <business-class-name>TestExample: PWV_Constants_Test Test function naming: test_<function>_<condition>_<result>Example: test-get_pwv_cookie_return_right_data GWT pattern: Given – When – Then Region: you can group the test cases for functions by using region#region test-case-1…#endregion

Ymese Pull Request Convention

May 28, 2019

version: 0.0.2 created by: thinhnp Feature branch naming: id1_id2_short_description Example: we are working on the ticket https://app.asana.com/0/1109283885440521/1124456729867975, then our feature branch’s name must be 1109283885440521_1124456729867975_integrate_waveplayer Title: [ref: asana_link] Short informative summary of the pull request. Example: [ref: https://app.asana.com/0/inbox/383835211172805/1123352055492054/1123358557176038] In protected pages/posts, it shows two password forms. Description:What does this PR do?How should this be manually…

Ymese Developer Common Bugs

April 12, 2019

Motivation This article will list down all the common bugs we met during the WordPress plugin development time. Input validation and notification message _ Required values _ Special characters: /, \ _ Input that pass data to .htaccess _ Min, max value _ Uniform notification message and position (client side) => Solution: use the sample…

Dropbox Shared Link Solution

November 27, 2018

Motivation: creating Dropbox shared private links with the expiry time Problems: file on Dropbox only has one valid shared private link Solution: a. Administrator While choosing the file for the downloadable WooCommerce product, Dropbox will generate a “direct” link type. There are two kinds of the link are “direct” and “preview”.  (Link types – https://www.dropbox.com/developers/chooser)….