aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2023-02-24 14:22:41 +0100
committerGitHub <noreply@github.com>2023-02-24 14:22:41 +0100
commit889caf46328a54e474e2340a7b7f0408e855c7fe (patch)
treecc38bb8290678862d15218b125c1f75a7aa9f93a /tests
parent8151b1b8b04315d7b43329c433a9ef52fe016787 (diff)
downloadnextcloud-server-889caf46328a54e474e2340a7b7f0408e855c7fe.tar.gz
nextcloud-server-889caf46328a54e474e2340a7b7f0408e855c7fe.zip
Update tests/lib/SystemTag/SystemTagManagerTest.php
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/SystemTag/SystemTagManagerTest.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/lib/SystemTag/SystemTagManagerTest.php b/tests/lib/SystemTag/SystemTagManagerTest.php
index 3d8d2d843c4..c1f4ce83ee5 100644
--- a/tests/lib/SystemTag/SystemTagManagerTest.php
+++ b/tests/lib/SystemTag/SystemTagManagerTest.php
@@ -260,11 +260,8 @@ class SystemTagManagerTest extends TestCase {
}
public function testCreateOverlongName() {
- try {
- $this->tagManager->createTag('Zona circundante do Palácio Nacional da Ajuda (Jardim das Damas, Salão de Física, Torre Sineira, Paço Velho e Jardim Botânico)', true, true);
- } catch (\Exception $e) {
- $this->assertTrue(false, 'No exception thrown for create call');
- }
+ $tag = $this->tagManager->createTag('Zona circundante do Palácio Nacional da Ajuda (Jardim das Damas, Salão de Física, Torre Sineira, Paço Velho e Jardim Botânico)', true, true);
+ $this->assertSame('Zona circundante do Palácio Nacional da Ajuda (Jardim das Damas,', $tag->getName());
}
/**