From: Timo Tijhof Date: Fri, 19 Jul 2019 22:39:11 +0000 (+0100) Subject: resourceloader: Move FilePath test to /tests/phpunit/unit X-Git-Tag: 1.34.0-rc.0~934^2 X-Git-Url: https://git.cyclocoop.org/%20%27.%28%24debut%20%20%20%24par_page%29.%27?a=commitdiff_plain;h=6e0c9c69b764c1ba5c0ebbedf7a5845ef6bb61a0;p=lhc%2Fweb%2Fwiklou.git resourceloader: Move FilePath test to /tests/phpunit/unit Pure value object. No external dependencies. Change-Id: If4120ca302c2fab2a41880c32e164d36566ed9de --- diff --git a/tests/phpunit/includes/resourceloader/ResourceLoaderFilePathTest.php b/tests/phpunit/includes/resourceloader/ResourceLoaderFilePathTest.php deleted file mode 100644 index 1249ca593c..0000000000 --- a/tests/phpunit/includes/resourceloader/ResourceLoaderFilePathTest.php +++ /dev/null @@ -1,23 +0,0 @@ -assertInstanceOf( ResourceLoaderFilePath::class, $path ); - } - - public function testGetters() { - $path = new ResourceLoaderFilePath( 'dummy/path', '/local', '/remote' ); - - $this->assertSame( '/local/dummy/path', $path->getLocalPath() ); - $this->assertSame( '/remote/dummy/path', $path->getRemotePath() ); - $this->assertSame( '/local', $path->getLocalBasePath() ); - $this->assertSame( '/remote', $path->getRemoteBasePath() ); - $this->assertSame( 'dummy/path', $path->getPath() ); - } -} diff --git a/tests/phpunit/unit/includes/resourceloader/ResourceLoaderFilePathTest.php b/tests/phpunit/unit/includes/resourceloader/ResourceLoaderFilePathTest.php new file mode 100644 index 0000000000..b1db38338c --- /dev/null +++ b/tests/phpunit/unit/includes/resourceloader/ResourceLoaderFilePathTest.php @@ -0,0 +1,23 @@ +assertInstanceOf( ResourceLoaderFilePath::class, $path ); + } + + public function testGetters() { + $path = new ResourceLoaderFilePath( 'dummy/path', '/local', '/remote' ); + + $this->assertSame( '/local/dummy/path', $path->getLocalPath() ); + $this->assertSame( '/remote/dummy/path', $path->getRemotePath() ); + $this->assertSame( '/local', $path->getLocalBasePath() ); + $this->assertSame( '/remote', $path->getRemoteBasePath() ); + $this->assertSame( 'dummy/path', $path->getPath() ); + } +}