Skip to content

Commit fce1561

Browse files
committed
docs: remove $setUpMethods and $tearDownMethods
It is not so convenient.
1 parent 8f0a2ad commit fce1561

3 files changed

Lines changed: 0 additions & 56 deletions

File tree

user_guide_src/source/testing/overview.rst

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -101,28 +101,6 @@ parent as well so extended test cases do not interfere with staging:
101101

102102
.. literalinclude:: overview/003.php
103103

104-
In addition to these methods, ``CIUnitTestCase`` also comes with a convenience property
105-
``$setUpMethods`` and ``$tearDownMethods`` for
106-
parameter-free methods you want to run during set up and tear down:
107-
108-
.. literalinclude:: overview/004.php
109-
110-
You can see by default these handle the mocking of intrusive services, but your class may override
111-
that or provide their own:
112-
113-
.. literalinclude:: overview/005.php
114-
115-
.. note:: When you override ``$setUpMethods`` properties, do not remove the following items that are set in the parent class by default unless you know they are truly unnecessary.
116-
117-
.. code-block:: php
118-
119-
protected $setUpMethods = [
120-
'resetFactories',
121-
'mockCache',
122-
'mockEmail',
123-
'mockSession',
124-
];
125-
126104
Traits
127105
------
128106

user_guide_src/source/testing/overview/004.php

Lines changed: 0 additions & 17 deletions
This file was deleted.

user_guide_src/source/testing/overview/005.php

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)