Elgg\EntityIconServiceTest::testServeIconSends400ForMalformattedRequest PHP Метод

testServeIconSends400ForMalformattedRequest() публичный Метод

    public function testServeIconSends400ForMalformattedRequest()
    {
        $path_key = \Elgg\Application::GET_PATH_KEY;
        $this->request = \Elgg\Http\Request::create("?{$path_key}=serve-icon/x/large");
        $service = $this->createService();
        $service->setCurrentTime();
        $response = $service->handleServeIconRequest(false);
        $this->assertEquals(400, $response->getStatusCode());
        $this->assertEquals($service->getCurrentTime('-1 day'), $response->getExpires());
    }