Merge pull request #3309 from owncloud/no_explicit_autoload

Use new autoloader class in tests
This commit is contained in:
icewind1991 2013-05-11 14:22:08 -07:00
commit dd4a31df48
2 changed files with 5 additions and 4 deletions

View File

@ -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
{

View File

@ -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>";