summaryrefslogtreecommitdiffstats
path: root/tests/lib/Template/JSResourceLocatorTest.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-07-23 13:44:18 +0200
committerMorris Jobke <hey@morrisjobke.de>2020-07-23 17:11:29 +0200
commit761cdf9877be6d286f96e1f3eb4beab052b89baa (patch)
treeab111c79ea60525bbd92dc8f91016b3846d1d3f9 /tests/lib/Template/JSResourceLocatorTest.php
parent1339ea15e26a3db944dcc2255b35d5fd1b0c7549 (diff)
downloadnextcloud-server-761cdf9877be6d286f96e1f3eb4beab052b89baa.tar.gz
nextcloud-server-761cdf9877be6d286f96e1f3eb4beab052b89baa.zip
Remove deprecated test of internal attributes via assertAttributeEquals in constructor tests
I removed the tests completely because they just test that the constructor assigns the values to the internal properties. Nothing that should be cared about from the outside. See https://github.com/sebastianbergmann/phpunit/issues/3339#issuecomment-428843322 It is seen as bad practice to test internal stuff of objects instead of the actual input and output of mathod calls. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'tests/lib/Template/JSResourceLocatorTest.php')
-rw-r--r--tests/lib/Template/JSResourceLocatorTest.php11
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/lib/Template/JSResourceLocatorTest.php b/tests/lib/Template/JSResourceLocatorTest.php
index 0e6b217ec52..3f5d157e7f5 100644
--- a/tests/lib/Template/JSResourceLocatorTest.php
+++ b/tests/lib/Template/JSResourceLocatorTest.php
@@ -86,17 +86,6 @@ class JSResourceLocatorTest extends \Test\TestCase {
return sha1(uniqid(mt_rand(), true));
}
-
- public function testConstructor() {
- $locator = $this->jsResourceLocator();
- $this->assertAttributeEquals('theme', 'theme', $locator);
- $this->assertAttributeEquals('core', 'serverroot', $locator);
- $this->assertAttributeEquals(['core'=>'map','3rd'=>'party'], 'mapping', $locator);
- $this->assertAttributeEquals('3rd', 'thirdpartyroot', $locator);
- $this->assertAttributeEquals('map', 'webroot', $locator);
- $this->assertAttributeEquals([], 'resources', $locator);
- }
-
public function testFindWithAppPathSymlink() {
// First create new apps path, and a symlink to it
$apps_dirname = $this->randomString();