<?php
namespace Claromentis\Comments\Tests;

$GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"] ?: array()) + array("commen" . "ts" => base64_decode("Y29tbWVudH" . "M="), "_31aba1e5c29106f7c5b" . "d79dad886adde" => base64_decode("b2Zmc2V0R2" . "V0"), "_a313073bb" . "a42f3bc3bd" . "d3d5c87cdb" . "8be" => base64_decode("R2V" . "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["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_a313073bba42" . "f3bc3bdd3d5c8" . "7cdb8be"])->with($thread_id)->willThrowException($_101c90a4d490f327cde8248984858329);
        $app->method($GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_31aba1e5c2" . "9106f7c5bd7" . "9dad886adde"])->with($GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["comm" . "ents"])->willReturn($repo);
        $this->expectException(NotFoundHttpException::class);
        $_d2c43bb68c7967ec126410ea8c683e9d->ShowThread($app, $request, $thread_id);
    }
}