Merge pull request #3309 from owncloud/no_explicit_autoload
Use new autoloader class in tests
This commit is contained in:
commit
dd4a31df48
|
@ -19,8 +19,6 @@
|
||||||
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
OC::autoload('OCP\Contacts');
|
|
||||||
|
|
||||||
class Test_Contacts extends PHPUnit_Framework_TestCase
|
class Test_Contacts extends PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
@ -20,10 +20,13 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
OC::autoload('OC_Template');
|
|
||||||
|
|
||||||
class Test_TemplateFunctions extends PHPUnit_Framework_TestCase {
|
class Test_TemplateFunctions extends PHPUnit_Framework_TestCase {
|
||||||
|
|
||||||
|
public function setUp() {
|
||||||
|
$loader = new \OC\Autoloader();
|
||||||
|
$loader->load('OC_Template');
|
||||||
|
}
|
||||||
|
|
||||||
public function testP() {
|
public function testP() {
|
||||||
// FIXME: do we need more testcases?
|
// FIXME: do we need more testcases?
|
||||||
$htmlString = "<script>alert('xss');</script>";
|
$htmlString = "<script>alert('xss');</script>";
|
||||||
|
|
Loading…
Reference in New Issue