Test base class #1146
samcoppock
started this conversation in
General
Test base class
#1146
Replies: 1 comment
-
@samcoppock the docs might need changing there. Pretty much the only one you should use for test cases in plugins is The base |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the test documentation
https://wintercms.com/docs/v1.2/docs/plugin/unit-testing#creating-test-cases-and-fixtures
It states that all tests must extend "System\Tests\Bootstrap\TestCase"
however the "modules/system/tests/bootstrap" folder has 3 Test case files which can be extended
TestCase.php
PluginTestCase.php
PluginManagerTestCase.php
the latter two extend the first.
Is it correct that we should always extend 'TestCase'
If yes
What are the "PluginTestCase" and "PluginManagerTestCase" classes for?
Can existing tests continue to use these other 2 classes?
Beta Was this translation helpful? Give feedback.
All reactions