[TESTS] Fix Twig/ExtensionTest
This commit is contained in:
parent
0441f030ab
commit
d857baa0f1
|
@ -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]));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user