<?php
namespace Claromentis\Comments\Tests;

$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"] = (@$GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"] ?: array()) + array("_31aba1e5c291" . "06f7c5bd79dad" . "886adde" => base64_decode("b2Zmc" . "2V0R2" . "V0"), "comme" . "nts" => base64_decode("Y29tbWVu" . "dHM="), "_a313073bba42f3bc3bdd3d5c87cdb8b" . "e" => base64_decode("R" . "2" . "V" . "0"));
use Claromentis\Comments\CommentsRepository;
use Claromentis\Comments\Controller\PermalinkController;
use Claromentis\Core\Application;
use Claromentis\Core\Localization\Lmsg;
use Claromentis\Core\Repository\Exception\NotFoundException;
use PHPUnit\Framework\TestCase;
use Psr\Http\Message\ServerRequestInterface;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
class PermalinkControllerTest extends TestCase
{
    public function testShowingNonexistentThread()
    {
        $lmsg = $this->createMock(Lmsg::class);
        $_d2c43bb68c7967ec126410ea8c683e9d = new PermalinkController($lmsg);
        $app = $this->createMock(Application::class);
        $request = $this->createMock(ServerRequestInterface::class);
        $thread_id = 42069;
        $repo = $this->createMock(CommentsRepository::class);
        $_101c90a4d490f327cde8248984858329 = new NotFoundException();
        $repo->method($GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_a313073bb" . "a42f3bc3bd" . "d3d5c87cdb" . "8be"])->with($thread_id)->willThrowException($_101c90a4d490f327cde8248984858329);
        $app->method($GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_31aba1e5c29106f7c5bd79dad886ad" . "de"])->with($GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["com" . "men" . "ts"])->willReturn($repo);
        $this->expectException(NotFoundHttpException::class);
        $_d2c43bb68c7967ec126410ea8c683e9d->ShowThread($app, $request, $thread_id);
    }
}