Peter Fabian
2f141eca77
PHPCS
2020-05-15 09:40:23 +02:00
Peter Fabian
777c140611
Skip tests when WC Admin is not active.
...
Since those Notes were created because of WC Admin and the display is handled by WC Admin, it does not make sense to test them without WC Admin.
In addition, the data store that handles these Notices is not loaded without WC Admin.
2020-05-14 14:35:09 +02:00
Peter Fabian
2c1625d3f9
Added a couple of tests for WC_Notes_Run_Db_Update, a poorly testable class.
2020-05-14 13:31:43 +02:00
Claudio Sanches
1d99c343e7
Added unit tests
2020-05-12 15:36:25 -03:00
Christopher Allford
ef8e7114b7
Merge branch 'privacy-exporter-group-description' of git://github.com/garretthyder/woocommerce into garretthyder-privacy-exporter-group-description
2020-05-12 09:40:17 -07:00
Vedanshu Jain
31b648d479
Merge pull request #26358 from woocommerce/fix/26348
...
Clear only plugin cache if WC header are not present to load with WC headers.
2020-05-11 18:14:39 +05:30
Claudio Sanches
73b71023ca
Fixed cart get total unit test
2020-05-08 23:17:59 +05:30
yasiendwieb
ad3a9e8bf3
fix issue in tax calculation at cart test case
2020-05-08 23:17:59 +05:30
Jonathan Sadowski
a0a8cf7ab3
Add test to ensure that a notice is displayed when an any attribute is omitted
2020-05-05 14:16:01 -05:00
Jonathan Sadowski
53c905f493
Reset request vars in any attribute test
2020-05-05 13:32:15 -05:00
Jonathan Sadowski
c0a72c9185
Reset notices at the start of each test
2020-05-05 13:32:15 -05:00
Jonathan Sadowski
3f47608228
Test adding a variation with 'any' attributes
2020-05-05 13:32:15 -05:00
Jonathan Sadowski
790c8ae8ae
Update the test to make sure there are no error notices
2020-05-05 13:32:15 -05:00
Jonathan Sadowski
3f70f70f3a
Switch to assertCount for count assertions in test
2020-05-05 13:32:15 -05:00
Jonathan Sadowski
3d0bfd8ee2
Add test to check for notice when invalid attribute is provided for a variant
2020-05-05 13:32:14 -05:00
Jonathan Sadowski
31bdce3725
Fix typo in test_add_variation_with_url test (use British spelling of colour)
2020-05-05 13:32:14 -05:00
Jonathan Sadowski
fc683bdb80
Update unit tests to account for issue 24000
2020-05-05 13:32:14 -05:00
vedanshujain
f4e169f21e
Moved test specific logic from bootstrap to test file
2020-05-02 00:31:54 +05:30
vedanshujain
13dfb8180f
Add unit test and a sample Woo plugin file
2020-05-01 22:47:08 +05:30
Christopher Allford
b5bd8225e8
Moved PHPUnit suite into tests/legacy
2020-04-24 13:53:40 -07:00