ソースを参照

Fix unit tests

tags/v9.1.0beta1
Roeland Jago Douma 8年前
コミット
54b637e83c
コミッターのメールアドレスに関連付けられたアカウントが存在しません
1個のファイルの変更1行の追加15行の削除
  1. 1
    15
      tests/lib/AutoLoaderTest.php

+ 1
- 15
tests/lib/AutoLoaderTest.php ファイルの表示

$this->loader = new \OC\AutoLoader([]); $this->loader = new \OC\AutoLoader([]);
} }


public function testLeadingSlashOnClassName() {
$this->assertEquals([
\OC::$SERVERROOT . '/lib/public/files/storage/local.php',
], $this->loader->findClass('\OCP\Files\Storage\Local'));
}

public function testNoLeadingSlashOnClassName() {
$this->assertEquals([
\OC::$SERVERROOT . '/lib/public/files/storage/local.php',
], $this->loader->findClass('OCP\Files\Storage\Local'));
}

public function testLegacyPath() { public function testLegacyPath() {
$this->assertEquals([ $this->assertEquals([
\OC::$SERVERROOT . '/lib/private/legacy/files.php', \OC::$SERVERROOT . '/lib/private/legacy/files.php',
} }


public function testLoadPublicNamespace() { public function testLoadPublicNamespace() {
$this->assertEquals([
\OC::$SERVERROOT . '/lib/public/foo/bar.php',
], $this->loader->findClass('OCP\Foo\Bar'));
$this->assertEquals([], $this->loader->findClass('OCP\Foo\Bar'));
} }


public function testLoadAppNamespace() { public function testLoadAppNamespace() {

読み込み中…
キャンセル
保存