From d857baa0f1ecf788e31b0fcd7d380db713545ca8 Mon Sep 17 00:00:00 2001 From: Diogo Peralta Cordeiro Date: Tue, 8 Mar 2022 01:54:05 +0000 Subject: [PATCH] [TESTS] Fix Twig/ExtensionTest --- tests/Twig/ExtensionTest.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/tests/Twig/ExtensionTest.php b/tests/Twig/ExtensionTest.php index 9a3d76d569..10d7eb4a89 100644 --- a/tests/Twig/ExtensionTest.php +++ b/tests/Twig/ExtensionTest.php @@ -35,7 +35,6 @@ declare(strict_types = 1); namespace App\Tests\Twig; -use App\Core\DB\DB; use App\Twig\Extension; use App\Twig\Runtime; use App\Util\GNUsocialTestCase; @@ -100,14 +99,4 @@ class ExtensionTest extends GNUsocialTestCase static::assertSame('active', $runtime->isCurrentRouteActive('current_route')); static::assertSame('', $runtime->isCurrentRouteActive('some_route', 'some_other_route')); } - - public function testGetNoteActions() - { - static::bootKernel(); - - $req = $this->createMock(Request::class); - $runtime = new Runtime; - $runtime->setRequest($req); - static::assertSame([], $runtime->getNoteActions(DB::dql('select n from note n where n.content = \'some content\'')[0])); - } }