Bolt\Tests\Twig\RecordHandlerTest::testCurrentNoMatchingSlugs PHP Method

testCurrentNoMatchingSlugs() public method

    public function testCurrentNoMatchingSlugs()
    {
        $app = $this->getApp();
        $app->flush();
        $this->addDefaultUser($app);
        $this->addSomeContent();
        $request = (new Request())->create('/pages/koala');
        $request->query->set('_route_params', ['zone' => 'frontend', 'slug' => 'koala', 'contenttypeslug' => 'pages']);
        $app['request'] = $request;
        $handler = new RecordHandler($app);
        $result = $handler->current(['contenttype' => ['slug' => 'snails', 'slug' => 'singular_slug']]);
        $this->assertFalse($result);
    }