mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #3309 from owncloud/no_explicit_autoload
Use new autoloader class in tests
This commit is contained in:
commit
dd4a31df48
2 changed files with 5 additions and 4 deletions
|
|
@ -19,8 +19,6 @@
|
|||
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
OC::autoload('OCP\Contacts');
|
||||
|
||||
class Test_Contacts extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
||||
|
|
|
|||
|
|
@ -20,10 +20,13 @@
|
|||
*
|
||||
*/
|
||||
|
||||
OC::autoload('OC_Template');
|
||||
|
||||
class Test_TemplateFunctions extends PHPUnit_Framework_TestCase {
|
||||
|
||||
public function setUp() {
|
||||
$loader = new \OC\Autoloader();
|
||||
$loader->load('OC_Template');
|
||||
}
|
||||
|
||||
public function testP() {
|
||||
// FIXME: do we need more testcases?
|
||||
$htmlString = "<script>alert('xss');</script>";
|
||||
|
|
|
|||
Loading…
Reference in a new issue