aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/tests/frontenddefinitiontraittest.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-05-13 17:09:27 +0200
committerVincent Petry <pvince81@owncloud.com>2016-05-13 17:09:27 +0200
commitddea34f95918151529e18988e188ba913bed2c8f (patch)
tree1d0cfc8f61a6d2d0366e0d73f74aeccf4edc0b89 /apps/files_external/tests/frontenddefinitiontraittest.php
parent3db709d568ed783876d06dc14ac2a9a4899ae700 (diff)
parentac27163f686ea082c3ca565a26c1c76db0728237 (diff)
downloadnextcloud-server-ddea34f95918151529e18988e188ba913bed2c8f.tar.gz
nextcloud-server-ddea34f95918151529e18988e188ba913bed2c8f.zip
Merge pull request #22214 from owncloud/ext-better-dropbox-gdrive
Direct links to Google Drive/Dropbox configuration pages from external storage config
Diffstat (limited to 'apps/files_external/tests/frontenddefinitiontraittest.php')
-rw-r--r--apps/files_external/tests/frontenddefinitiontraittest.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files_external/tests/frontenddefinitiontraittest.php b/apps/files_external/tests/frontenddefinitiontraittest.php
index 2afc87762e9..b3846fa1510 100644
--- a/apps/files_external/tests/frontenddefinitiontraittest.php
+++ b/apps/files_external/tests/frontenddefinitiontraittest.php
@@ -33,12 +33,14 @@ class FrontendDefinitionTraitTest extends \Test\TestCase {
$trait = $this->getMockForTrait('\OCA\Files_External\Lib\FrontendDefinitionTrait');
$trait->setText('test');
$trait->addParameters([$param]);
- $trait->setCustomJs('foo/bar.js');
+ $trait->addCustomJs('foo/bar.js');
+ $trait->addCustomJs('bar/foo.js');
$json = $trait->jsonSerializeDefinition();
$this->assertEquals('test', $json['name']);
- $this->assertEquals('foo/bar.js', $json['custom']);
+ $this->assertContains('foo/bar.js', $json['custom']);
+ $this->assertContains('bar/foo.js', $json['custom']);
$configuration = $json['configuration'];
$this->assertArrayHasKey('foo', $configuration);